/*
Theme Name: O&S Advisory
Theme URI: https://github.com/wkdigitalau/osadvisory
Author: WK Digital
Description: A focused, conservative WordPress theme for O&S Advisory.
Version: 1.0.1
Text Domain: osadvisory
*/

:root {
  --navy: #172d55;
  --navy-deep: #0e1f3e;
  --accent: #923f4d;
  --accent-dark: #6f2d39;
  --ink: #182231;
  --muted: #5d6876;
  --paper: #ffffff;
  --soft: #f3f6f6;
  --warm: #f7f5f0;
  --line: #d9e0e2;
  --focus: #f0b429;
  --shadow: 0 16px 40px rgba(14, 31, 62, 0.1);
  --content: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 48px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--paper);
  background: var(--navy);
}

.site-width {
  width: var(--content);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 45, 85, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 84px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  justify-self: end;
}

.site-nav ul {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 20;
  display: none;
  width: 290px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  display: block;
}

.site-nav .sub-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
}

.site-nav a,
.services-menu-trigger {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.services-menu-trigger {
  padding: 14px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-nav a:hover,
.services-menu-trigger:hover,
.services-menu-trigger:focus-visible,
.site-nav .current-menu-item > a {
  color: var(--accent-dark);
}

.header-call {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  color: var(--paper);
  background: var(--accent-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy-deep);
}

.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 78px 0 106px;
}

.hero-photo {
  align-self: stretch;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2b9c2;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 84px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: #e3e9f0;
  font-size: 24px;
  line-height: 1.45;
}

.hero-note {
  max-width: 560px;
  margin: 22px 0 0;
  color: #cbd5e2;
  font-size: 16px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--paper);
  background: var(--accent);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--paper);
  background: var(--accent-dark);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

.button-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-navy {
  background: var(--navy);
}

.button-navy:hover {
  background: var(--navy-deep);
}

.button .arrow {
  font-size: 20px;
  line-height: 1;
}

.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -46px;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 24px 28px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.trust-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.prototype-links {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.prototype-links .site-width {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.prototype-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.header-call:hover {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent);
}

.prototype-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--soft);
}

.section-warm {
  background: var(--warm);
}

.section-dark {
  color: var(--paper);
  background: var(--navy-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.6fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2,
.split-copy h2,
.contact-copy h2,
.page-header h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-heading p,
.split-copy > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 294px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.service-number {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.service-card h3 {
  margin: 34px 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.18;
}

.service-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.service-card a {
  margin-top: auto;
  font-size: 14px;
  font-weight: 750;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 88px;
  align-items: start;
}

.split-copy h2 {
  margin-bottom: 24px;
}

.feature-list,
.check-list,
.contact-list {
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-top: 1px solid var(--line);
}

.feature-list li::before,
.check-list li::before {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.process {
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 0 0 36px 76px;
  counter-increment: process;
}

.process-step:not(:last-child)::after {
  position: absolute;
  top: 48px;
  bottom: 4px;
  left: 23px;
  width: 1px;
  content: "";
  background: var(--line);
}

.process-step::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  content: counter(process);
  color: var(--paper);
  background: var(--navy);
  font-weight: 800;
  place-items: center;
}

.process-step h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 19px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.fit-panel {
  padding: 34px;
  border-top: 4px solid var(--accent);
  background: var(--paper);
}

.fit-panel h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.fit-panel p {
  margin: 0;
  color: var(--muted);
}

.notice {
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: #f7ecee;
}

.notice p {
  margin: 0;
}

.contact-section {
  padding: 96px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-list li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.contact-list strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.meeting-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.meeting-form h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.meeting-form > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bac5ca;
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  padding: 12px 14px;
  margin-bottom: 18px;
  border-left: 4px solid var(--accent);
  background: #f7ecee;
}

.form-status.error {
  border-color: #a43a3a;
  background: #f9ebeb;
}

.page-header {
  padding: 84px 0 66px;
  background: var(--soft);
}

.service-hero {
  padding: 92px 0 78px;
  color: var(--paper);
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 58%, #283d60 58%, #283d60 100%);
}

.service-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 340px);
  gap: 80px;
  align-items: center;
  justify-content: space-between;
}

.service-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.08;
}

.service-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e3e9f0;
  font-size: 20px;
  line-height: 1.45;
}

.service-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  border-top: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.service-aside strong {
  display: block;
  color: var(--paper);
  font-size: 18px;
}

.service-aside span {
  display: block;
  margin-top: 8px;
  color: #cbd5e2;
  font-size: 15px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.detail-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.quote-band {
  padding: 72px 0;
  color: var(--paper);
  background: var(--navy);
}

.quote-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 820px) 220px;
  gap: 84px;
  align-items: center;
  justify-content: space-between;
}

.quote-band blockquote {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
}

.quote-logo {
  width: 210px;
  justify-self: end;
  opacity: 0.92;
}

.office-photo,
.contact-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.office-photo {
  min-height: 520px;
}

.contact-photo {
  margin-top: 32px;
  aspect-ratio: 4 / 3;
}

.office-photo img,
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compliance-callout,
.explainer-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
  padding-left: 26px;
  border-left: 6px solid var(--accent);
}

.compliance-callout h2,
.explainer-intro h2,
.legal-note h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.08;
}

.compliance-callout p,
.explainer-intro p,
.legal-note p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.compliance-callout .button {
  margin-top: 10px;
}

.compliance-grid .detail-card {
  min-height: 250px;
}

.legal-note {
  max-width: 820px;
}

.page-header h1 {
  max-width: 800px;
}

.page-header p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.entry-content {
  width: min(800px, calc(100% - 40px));
  padding: 72px 0 96px;
  margin-inline: auto;
}

.entry-content h2,
.entry-content h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.site-footer {
  padding: 58px 0 26px;
  color: #d9e1eb;
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 60px;
  padding-bottom: 42px;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  color: #bdc8d5;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--paper);
  font-size: 21px;
  font-weight: 750;
}

.footer-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  padding: 4px;
  border-radius: 50%;
  background: var(--paper);
  object-fit: contain;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 14px;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid address {
  margin: 0;
  color: #bdc8d5;
  font-size: 14px;
  font-style: normal;
}

.footer-grid a {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #9eacbd;
  font-size: 12px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-call {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    display: none;
    width: 100vw;
    padding: 28px 20px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(14, 31, 62, 0.14);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav .sub-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 8px 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav .sub-menu li {
    border-bottom: 0;
  }

  .site-nav .sub-menu a {
    padding: 9px 4px;
    color: var(--muted);
    font-size: 15px;
  }

  .site-nav li {
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 18px;
  }

  .services-menu-trigger {
    width: 100%;
    padding: 16px 4px;
    color: var(--ink);
    font-size: 18px;
    text-align: left;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 570px;
  }

  .hero-photo {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-lead {
    font-size: 21px;
  }

  .section-heading h2,
  .split-copy h2,
  .contact-copy h2,
  .page-header h1 {
    font-size: 48px;
  }

  .hero::after {
    inset: 8% -12% auto 55%;
    height: 520px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .split,
  .contact-layout,
  .compliance-callout,
  .explainer-intro {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .service-hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  .service-hero h1 {
    font-size: 46px;
  }

  .quote-band-inner {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 42px;
  }

  .quote-logo {
    width: 150px;
  }

  .office-photo {
    min-height: 380px;
  }
}

@media (max-width: 700px) {
  :root {
    --content: min(100% - 28px, 1160px);
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand span {
    font-size: 16px;
  }

  .hero-inner {
    min-height: 520px;
    padding: 58px 0 96px;
  }

  .hero h1 {
    font-size: 48px;
  }

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

  .section-heading h2,
  .split-copy h2,
  .contact-copy h2,
  .page-header h1 {
    font-size: 38px;
  }

  .hero::after {
    inset: 16% -34% auto 36%;
    opacity: 0.08;
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 18px 20px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section,
  .contact-section {
    padding: 74px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .services-grid,
  .fit-grid,
  .detail-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-hero {
    padding: 48px 0 44px;
    background: var(--navy-deep);
  }

  .service-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-hero h1 {
    font-size: 36px;
  }

  .service-hero p {
    font-size: 17px;
  }

  .service-aside {
    padding: 20px;
  }

  .quote-band blockquote {
    font-size: 28px;
  }

  .quote-band-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quote-logo {
    width: 130px;
    justify-self: start;
  }

  .service-card {
    min-height: 240px;
  }

  .meeting-form {
    padding: 24px 18px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-bottom: 8px;
  }
}
