/* ===== SM Accessibility Consulting — brand ===== */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700');

body, button, input, select, textarea, p, li, .entry-content { font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, h4, h5, h6, .site-title, .entry-title, .widget-title { font-family: 'El Messiri', Georgia, 'Times New Roman', serif; }

/* Focus rings — keyboard, brand, high-contrast */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #197059; outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible, .main-navigation :focus-visible, header :focus-visible, .site-title a:focus-visible { outline-color: #E0BC7D; }

/* Testimonials — gold-accented editorial */
.wp-block-quote, blockquote { border-left: 5px solid #CB9D4B; padding: 0.5em 0 0.5em 1.25em; margin-left: 0; font-style: normal; }
.entry-content .wp-block-quote p, .wp-block-quote p, blockquote p { color: #333333 !important; font-size: 1.15rem !important; line-height: 1.6; }
.wp-block-quote p:last-child:not(:first-child), blockquote p:last-child:not(:first-child) { font-family: 'El Messiri', Georgia, serif; color: #197059 !important; font-weight: 600; font-size: 1rem !important; }

/* Homepage full-width — reclaim empty sidebar gutter (no sidebar present) */
.home #main.main{float:none;width:100%;margin-right:0;}

/* CTA full-width breakout: match hero cover width (~1112) */
@media (min-width:1000px){
  .post-content > .wp-block-group.alignfull.has-background{
    margin-left: calc((100% - 1112px)/2);
    margin-right: calc((100% - 1112px)/2);
  }
}

/* site-wide main unfloat: kill ghost-sidebar float on all pages, center #main */
#main{float:none;width:auto;max-width:1112px;margin-left:auto;margin-right:auto;}

/* services buttons: brand gold */
.page-id-520 .wp-block-button__link, .parent-pageid-520 .wp-block-button__link{background-color:#CB9D4B !important;color:#123f2e !important;}

/* hide redundant page title on homepage (hero carries the H1) */
.home .post-header{display:none;}

/* homepage heading scale: stronger section-title hierarchy */
.home .wp-block-cover h1{font-size:32px !important;}
.home #main h2{font-size:26px !important;}
.home #main h3{font-size:22px !important;}

/* === Cortney QA pass START === */
/* Header: brand green (was theme default #333). White title/nav = ~5.95:1 AA. */
#site-header{background-color:#197059!important;box-shadow:inset 0 -3px 0 #E0BC7D;}
#site-header,#site-header a,#site-header .site-title,#site-header .site-title a{color:#ffffff!important;}
/* Nav current/hover marker: gold underline (menu=ul.menu-primary-items; black box was on the <a>) */
#site-header .menu-primary-items a{background-color:transparent!important;}
#site-header .menu-primary-items .current-menu-item>a,#site-header .menu-primary-items .current_page_item>a,#site-header .menu-primary-items .current-menu-ancestor>a,#site-header .menu-primary-items a[aria-current],#site-header .menu-primary-items a:hover,#site-header .menu-primary-items a:focus{background-color:transparent!important;color:#ffffff!important;box-shadow:inset 0 -3px 0 #E0BC7D!important;}
/* Mobile nav (<900px): theme shows the hamburger but never collapsed the list, so both appeared. Collapse by default; reveal only when the toggle is open (.open class the button gets). */
@media (max-width:56.24em){
#site-header .menu-primary-items{display:none!important;}
#site-header .toggle-navigation.open+.menu-primary-container .menu-primary-items,#site-header .toggle-navigation[aria-expanded="true"]+.menu-primary-container .menu-primary-items{display:block!important;}
}
/* Content width: wrapper=min(92vw,1280) centered; neutralize theme fixed ~1112 width + container padding */
#primary-container{padding-left:0!important;padding-right:0!important;}
#primary-container>.max-width,#primary-container>.max-width>#main{width:min(92vw,1280px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;}
/* CTA band: fixed-width one-sided breakout -> symmetric breakout that centers it at content width (matches hero) */
#main #contact{width:min(92vw,1280px)!important;max-width:none!important;margin-left:calc((100% - min(92vw,1280px))/2)!important;margin-right:calc((100% - min(92vw,1280px))/2)!important;}
/* Trim excess vertical dead-space on homepage testimonials/why-us bands (were 96/144) + drop stray empty paragraph */
#main #reviews{padding-top:56px!important;padding-bottom:56px!important;}
#main #whyus{padding-top:72px!important;padding-bottom:72px!important;}
#main p.wp-block-paragraph:empty{margin-top:0!important;margin-bottom:0!important;}
/* Interior brand — barrier form (549) + Insights index (blog). Home & services untouched. */
body.page-id-549 #main :is(h1,h2,h3),body.blog #main :is(h1,h2,h3){color:#197059;}
body.page-id-549 #main a:not(.wp-block-button__link),body.blog #main a:not(.wp-block-button__link){color:#197059;text-underline-offset:2px;}
/* Branded form submit — barrier (549) + contact (547) */
body.page-id-549 #main :is(button,input)[type=submit],body.page-id-547 #main :is(button,input)[type=submit],body.page-id-549 #main .wp-block-jetpack-button button,body.page-id-547 #main .wp-block-jetpack-button button{background-color:#197059!important;color:#fff!important;border:0!important;}
/* Insights: white cards so B&W post art separates from the gray page */
body.blog #main article{background:#ffffff;padding:1.25rem 1.5rem;margin-bottom:1.5rem;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.09);}
/* === Cortney QA pass END === */
