/* CoreChoice — site styles (original stylesheet, modelled on the previous site's look) */

:root {
  --navy: #162349;
  --navy-dark: #0f1934;
  --footer: #1f355b;
  --text: #333;
  --heading: #162349;
  --muted: #6b7280;
  --border: #e5e7eb;
  --alt-bg: #f6f7fa;
  --header-h: 84px;
  --container: 114rem;
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Raleway, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; padding-top: var(--header-h); font-family: var(--font); font-size: 1.6rem; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover, a:focus { color: #2c4a9a; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--heading); font-weight: 700; line-height: 1.3; margin: 3rem 0 1.5rem; }
h1 { font-size: 3.4rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 2.1rem; }
p { margin: 0 0 1.5em; }
ul { margin: 0 0 1.5em 2.4rem; padding: 0; }
li { margin: 0.4rem 0; }
address { font-style: normal; margin: 0 0 1.5em; }
.center { text-align: center; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 76rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999rem; top: 1rem; z-index: 999; background: #fff; color: #000; padding: 1rem 2rem; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* Header */
#site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 2rem; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-logo img { width: 150px; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0 0.5rem; }
.primary-menu li { position: relative; margin: 0; }
.primary-menu a { display: block; color: #fff; text-decoration: none; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 1rem 1.2rem; }
.primary-menu a:hover, .primary-menu a:focus, .primary-menu a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 0.4em; }
.has-children { display: flex; align-items: center; }
.has-children > a { padding-right: 0.2rem; }
.submenu-toggle { background: none; border: 0; padding: 0.6rem; cursor: pointer; color: #fff; }
.submenu-toggle::after { content: ""; display: block; width: 0.6rem; height: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub-menu { list-style: none; margin: 0; padding: 0.6rem 0; position: absolute; top: 100%; left: 0; min-width: 26rem; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.15); opacity: 0; visibility: hidden; transform: translateY(0.6rem); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.sub-menu a { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1.5rem; padding: 0.9rem 2rem; }
.sub-menu a:hover, .sub-menu a:focus, .sub-menu a[aria-current="page"] { color: var(--navy); background: var(--alt-bg); }
.has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu, .has-children.open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: #fff; padding: 1.4rem 0.8rem; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 2.6rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { top: 8px; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-logo img { width: 120px; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); max-height: calc(100vh - var(--header-h)); overflow-y: auto; border-top: 1px solid rgba(255,255,255,.15); }
  .primary-nav.open { display: block; }
  .primary-menu { flex-direction: column; align-items: stretch; padding: 0.5rem 2rem 2rem; }
  .primary-menu > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .primary-menu a { padding: 1.3rem 0; }
  .has-children { flex-wrap: wrap; justify-content: space-between; }
  .sub-menu { position: static; display: none; width: 100%; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; padding: 0 0 1rem 1.6rem; min-width: 0; }
  .sub-menu a { color: #fff; }
  .sub-menu a:hover, .sub-menu a:focus, .sub-menu a[aria-current="page"] { color: #fff; background: none; }
  .has-children.open > .sub-menu { display: block; }
}

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: 56rem; padding: 10rem 0; background: var(--navy) url(/wp-content/uploads/2020/08/FrontPageImage1.jpg) center / cover no-repeat; color: #fff; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.48); }
.hero .container { position: relative; }
.hero-large-text { color: #fff; font-size: clamp(3.2rem, 6vw, 5.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 2rem; }
.rotator { display: inline-block; min-width: 6ch; transition: opacity .3s; }
.rotator.fade { opacity: 0; }
.hero-small-text { max-width: 72rem; margin: 0 auto; font-size: clamp(1.7rem, 2.2vw, 2rem); line-height: 1.6; }
.hero-small-text strong { color: #fff; }

/* Page header */
.page-header { background: var(--alt-bg); border-bottom: 1px solid var(--border); padding: 3.5rem 0; }
.page-header h1 { margin: 0; font-size: clamp(2.6rem, 4vw, 3.4rem); }
.content { max-width: 86rem; margin: 0 auto; padding: 4.5rem 2rem 7rem; }
.content > :first-child { margin-top: 0; }

/* Home sections */
.section { padding: 7rem 0; }
.section--alt { background: var(--alt-bg); }
.section-title { text-align: center; font-size: 3rem; margin: 0 0 3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.section-title::after { content: ""; display: block; width: 6rem; height: 3px; background: var(--navy); margin: 1.5rem auto 0; }

.card-grid { list-style: none; margin: 3rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.6rem; }
.card-grid li { margin: 0; }
.card-grid a { display: flex; align-items: center; justify-content: center; min-height: 9rem; padding: 2rem; text-align: center; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--navy); font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; color: var(--navy); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.card-grid a:hover, .card-grid a:focus { box-shadow: 0 8px 24px rgba(22,35,73,.15); transform: translateY(-2px); }

/* Buttons */
.button, button[type="submit"] { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; padding: 1.3rem 2.6rem; border: 0; border-radius: 3px; cursor: pointer; text-align: center; }
.button:hover, .button:focus, button[type="submit"]:hover, button[type="submit"]:focus { background: var(--navy-dark); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 4rem 0 1rem; }
.callout { font-weight: 700; color: var(--heading); }
.file-download { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 3rem 0; }
.file-download span { color: var(--muted); font-size: 1.5rem; }

/* About */
.about-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; }
.about-intro figure { margin: 0.6rem 0 0; }
.content:has(.about-intro) { max-width: var(--container); }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } }

/* FAQ / accordion */
.faq-q { font-size: 1.8rem; margin: 3.5rem 0 1rem; }
.accordion details { border: 1px solid var(--border); margin: 0 0 1rem; background: #fff; }
.accordion summary { cursor: pointer; padding: 1.6rem 2rem; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 2rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 2rem; line-height: 1; }
.accordion details[open] summary::after { content: "\2013"; }
.accordion details p { padding: 0 2rem 1.6rem; margin: 0; }

/* Clients */
.content:has(.logo-grid) { max-width: var(--container); }
.logo-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 40vw), 1fr)); gap: 2rem; }
.logo-grid li { margin: 0; }
.logo-grid a { display: flex; align-items: center; justify-content: center; height: clamp(10rem, 22vw, 14rem); padding: 1.5rem; border: 1px solid var(--border); background: #fff; transition: box-shadow .2s; }
.logo-grid a:hover, .logo-grid a:focus { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.logo-grid img { max-height: 9rem; width: auto; object-fit: contain; }

/* News */
.post-list { list-style: none; margin: 0; }
.post-list > li { display: grid; grid-template-columns: 22rem 1fr; gap: 3rem; margin: 0 0 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border); }
.post-list > li:last-child { border-bottom: 0; }
.post-thumb img { width: 100%; }
.post-thumb--empty { display: block; aspect-ratio: 2 / 1; background: var(--alt-bg) url(/wp-content/uploads/2016/08/cropped-CoreChoice_LogoIcon512_website-192x192.png) center / 6rem no-repeat; }
.post-list h2 { font-size: 2.1rem; margin: 0 0 0.6rem; }
.post-list h2 a { color: var(--heading); text-decoration: none; }
.post-list h2 a:hover, .post-list h2 a:focus { text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 1.4rem; margin-bottom: 1rem; }
.post-image { margin: 0 0 2.5rem; }
.back-link { margin-top: 4rem; }
@media (max-width: 640px) { .post-list > li { grid-template-columns: 1fr; gap: 1.5rem; } .post-thumb { max-width: 30rem; } }

/* Contact & forms */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; max-width: var(--container); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.site-form { background: var(--alt-bg); padding: 3.5rem; border-top: 4px solid var(--navy); }
.site-form h2 { margin: 0 0 0.5rem; font-size: 2.2rem; }
.section-desc { color: var(--muted); font-size: 1.4rem; }
.sub-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 520px) { .sub-fields { grid-template-columns: 1fr; } .site-form { padding: 2.5rem 1.8rem; } }
.field { margin: 0 0 2rem; }
.field label { display: block; font-weight: 600; font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--heading); }
.req { color: #b42318; margin-left: 0.2rem; }
.site-form input[type="text"], .site-form input[type="email"], .site-form textarea { width: 100%; font: inherit; color: var(--text); padding: 1rem 1.2rem; border: 1px solid #c9ced8; border-radius: 3px; background: #fff; }
.site-form textarea { min-height: 16rem; resize: vertical; }
.site-form [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: 1.4rem; margin: 0.4rem 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 2rem 0 0; padding: 1.4rem 1.8rem; font-size: 1.5rem; }
.form-status:empty { display: none; }
.form-status.error { background: #fdecea; border: 1px solid #f1b5ae; color: #8a1c12; }
.form-status.success { background: #e8f5ec; border: 1px solid #b4dcc0; color: #1d5a2c; }
button[disabled] { opacity: .6; cursor: progress; }

/* Footer */
#site-footer { color: rgba(255,255,255,.85); font-size: 1.5rem; }
.footer-widgets { background: var(--navy); padding: 5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
#site-footer h2 { color: #fff; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 1.4rem; }
#site-footer ul { list-style: none; margin: 0; }
#site-footer a { color: #fff; text-decoration: none; }
#site-footer a:hover, #site-footer a:focus { text-decoration: underline; }
.site-info { background: var(--footer); padding: 1.8rem 0; font-size: 1.4rem; }
.site-info .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.site-info p { margin: 0; }

.not-found { text-align: center; padding: 10rem 2rem; }

@media print {
  #site-header, #site-footer, .nav-toggle { display: none; }
  body { padding-top: 0; }
  .hero { background: none; color: #000; min-height: 0; padding: 2rem 0; }
  .hero::before { display: none; }
  .hero-large-text, .hero-small-text strong { color: #000; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
