/*
Theme Name: All Things Quality
Theme URI: https://www.atq-quality.com/
Author: All Things Quality
Description: A responsive classic WordPress theme based on the existing All Things Quality site. Uses native WordPress custom logo, menus, and editor content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: all-things-quality
*/

:root {
    --atq-blue: #114fa8;
    --atq-light-blue: #f0f4fa;
    --atq-link-blue: #3b85ed;
    --atq-text: #212529;
    --atq-border: #d9e3f2;
    --atq-white: #ffffff;
    --atq-container: 1140px;
}

html { box-sizing: border-box; overflow-x: clip; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; color: var(--atq-text); background: var(--atq-white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1rem; line-height: 1.55; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--atq-link-blue); text-decoration: none; }
a:hover, a:focus { color: var(--atq-blue); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--atq-link-blue); outline-offset: 3px; }

.atq-container { width: min(100% - 2rem, var(--atq-container)); margin-inline: auto; }
.atq-header { background: var(--atq-light-blue); border-bottom: 1px solid var(--atq-border); position: relative; z-index: 10; }
.atq-header__inner { min-height: 92px; display: flex; align-items: center; gap: 2rem; }
.atq-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.atq-brand img { display: block; max-height: 61px; width: auto; }
.atq-brand__text { color: var(--atq-blue); font-size: 1.15rem; font-weight: 700; }
.atq-menu-toggle { display: none; margin-left: auto; border: 1px solid var(--atq-blue); background: transparent; color: var(--atq-blue); border-radius: 4px; padding: .55rem .7rem; cursor: pointer; }
.atq-menu-toggle__bar { display: block; width: 23px; height: 2px; margin: 4px 0; background: currentColor; }
.atq-primary-nav { margin-left: auto; }
.atq-primary-nav .menu { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.atq-primary-nav li { position: relative; }
.atq-primary-nav a { display: block; color: var(--atq-link-blue); padding: .7rem .65rem; font-size: .98rem; white-space: nowrap; }
.atq-primary-nav a:hover, .atq-primary-nav a:focus { color: var(--atq-blue); text-decoration: none; }
.atq-primary-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 235px; margin: 0; padding: .45rem 0; list-style: none; background: var(--atq-light-blue); border: 1px solid var(--atq-border); box-shadow: 0 8px 20px rgba(17, 79, 168, .12); }
.atq-primary-nav li:hover > .sub-menu, .atq-primary-nav li:focus-within > .sub-menu { display: block; }
.atq-primary-nav .sub-menu a { padding: .55rem .8rem; white-space: normal; }
.atq-primary-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .75em; }
.atq-login-link { margin-left: .5rem; border: 1px solid var(--atq-blue); border-radius: 4px; padding: .55rem .8rem !important; }

.atq-main { min-height: 45vh; padding: 2rem 0 4rem; }
.atq-content > :first-child { margin-top: 0; }
.atq-page-title, .atq-entry-title { color: var(--atq-blue); line-height: 1.2; }
.atq-entry-content { max-width: 100%; }
.atq-entry-content a { overflow-wrap: anywhere; }
.atq-entry-content .alignwide { width: min(100% + 4rem, 1240px); margin-left: -2rem; }
.atq-entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.atq-footer { background: var(--atq-light-blue); border-top: 1px solid var(--atq-border); padding: 1.8rem 0 1.2rem; }
.atq-footer__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.4rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.atq-footer__menu a { color: var(--atq-blue); font-weight: 600; }
.atq-footer__copyright { color: var(--atq-blue); text-align: center; margin: 0; font-size: .9rem; }
.atq-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; }

@media (max-width: 991px) {
    .atq-header__inner { min-height: 78px; }
    .atq-menu-toggle { display: block; }
    .atq-primary-nav { display: none; width: 100%; margin: 0; padding: .5rem 0 1rem; }
    .atq-primary-nav.is-open { display: block; }
    .atq-header__inner { flex-wrap: wrap; gap: 0; }
    .atq-primary-nav .menu { display: block; }
    .atq-primary-nav a { padding: .65rem .25rem; white-space: normal; }
    .atq-primary-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 .2rem 1rem; border: 0; box-shadow: none; }
    .atq-primary-nav .menu-item-has-children > a::after { content: ""; }
    .atq-login-link { display: inline-block !important; margin: .35rem 0 0; }
}

@media (max-width: 575px) {
    .atq-container { width: min(100% - 1.25rem, var(--atq-container)); }
    .atq-brand img { max-height: 52px; }
    .atq-main { padding-top: 1.35rem; }
    .atq-footer__menu { display: block; text-align: center; }
    .atq-footer__menu li { margin: .5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
