/* Epic Chiropractic: hand-written stylesheet (no framework). Breakpoints: 768 / 992 / 1200. */
@font-face {
    font-family: "Questrial";
    src: url("../fonts/questrial-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --page: #ebf1f2;
    --ink: #03212d;
    --link: #34495e;
    --hover: #d9534f;
    --dark: #003449;
    --teal: #00688e;
    --sky: #b7deff;
    --pale: #b7e8ff;
    --menu: #2c3e50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Questrial", sans-serif;
    font-size: 12px;
    background: var(--page);
    color: var(--ink);
}
img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; transition: color 300ms; }
a:hover, a:focus { color: var(--hover); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

h1 { font-size: 20px; text-transform: uppercase; font-weight: 700; margin: 0.67em 0; }
h2 { font-size: 18px; text-transform: uppercase; font-weight: 700; margin: 0.83em 0; }
p { margin: 0 0 10px; line-height: 18px; text-align: justify; }

/* Page frame */
.site { width: 100%; max-width: 100%; margin: 0 auto; border: 1px solid #ddd; border-radius: 2px; }
@media (min-width: 768px) { .site { max-width: 750px; } }
@media (min-width: 992px) { .site { max-width: 970px; } }
@media (min-width: 1200px) { .site { max-width: 1024px; } }

/* Header */
.site-header { background: var(--dark); display: block; }
.brand { background: #fff; padding: 15px; text-align: center; }
.brand img { display: inline-block; }
.head-right { background: var(--sky); padding-top: 30px; align-self: start; }
.head-info { display: grid; grid-template-columns: 1fr; gap: 0; }
.info { display: grid; grid-template-columns: 25% 75%; padding: 0 15px; }
.info-icon { padding: 0 15px; }
.info-icon img { width: 100%; max-width: 48px; }
.info-text { padding: 0 15px; color: #2a2a2a; }
.info-text a { display: block; }
#telephone { font-size: 1.3em; }
#address { color: #2a2a2a; }

/* Navigation */
.nav-bar { background: var(--dark); margin-top: 55px; padding: 0 15px; position: relative; display: flow-root; }
.nav-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: 6px 15px; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; display: block; border-radius: 5px; vertical-align: top; }
.nav-list > li.active { background: var(--teal); }
.nav-list > li > a,
.nav-list > li > .dropdown-toggle {
    display: block; padding: 7px 25px; border-radius: 4px; color: #fff; font: 13px/20px "Questrial", sans-serif;
    background: none; border: 0; cursor: pointer; transition: color 300ms;
}
.nav-list > li > a:hover, .nav-list > li > .dropdown-toggle:hover { color: #00b7ff; }
.caret { display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 180px; margin: -3px 0 0; padding: 0;
    list-style: none; background: var(--menu); border-radius: 0 0 4px 4px;
}
.dropdown.open > .dropdown-menu { display: block; }
html:not(.js) .dropdown:hover > .dropdown-menu, html:not(.js) .dropdown:focus-within > .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 15px; color: #bdc3c7; font-size: 14px; white-space: nowrap; line-height: 20px; }
.dropdown-menu li:hover > a, .dropdown-menu a:focus, .dropdown-menu a[aria-current] { background: rgba(0, 0, 0, 0.3); color: #fff; }
.dropdown-menu li:last-child > a { border-radius: 0 0 3px 3px; }

/* Home hero */
.hero { display: block; background: #fff; }
.slider { position: relative; overflow: hidden; background: #000; }
.slides { list-style: none; margin: 0; padding: 0; display: flex; transition: transform 2s ease; }
.slides li { flex: 0 0 100%; overflow: hidden; }
.slides img { display: block; width: 100%; max-width: none; height: auto; }
@media (min-width: 992px) { .slider { height: 360px; } .slides, .slides li { height: 100%; } }
.s-btn { position: absolute; z-index: 5; border: 0; cursor: pointer; background-color: transparent; background-repeat: no-repeat; padding: 0; }
.s-prev, .s-next { top: 50%; margin-top: -2.4em; width: 3.4em; height: 3.4em; background-image: url("../img/slider/arrows.png"); background-size: 200%; }
.s-prev { left: 0.5em; background-position: 0 0; }
.s-next { right: 0.5em; background-position: 100% 0; }
.s-prev:hover { background-position: 0 100%; }
.s-next:hover { background-position: 100% 100%; }
.s-pause { top: 50%; left: 50%; margin: -2.5em 0 0 -2.5em; width: 3.4em; height: 3.4em; background-image: url("../img/slider/pause.png"); background-size: 100%; opacity: 0; transition: opacity 300ms; }
.slider:hover .s-pause, .s-pause:focus-visible { opacity: 1; }
.s-pause.paused { background-image: url("../img/slider/play.png"); }
.s-bullets { position: absolute; z-index: 6; bottom: 0; left: 50%; transform: translateX(-50%); padding: 5px; display: flex; }
.s-bullet { position: relative; width: 20px; height: 20px; margin-left: 7px; border: 0; padding: 0; cursor: pointer; background: url("../img/slider/bullet.png") 0 0 / 20px 60px no-repeat; }
.s-bullet:hover { background-position: 0 50%; }
.s-bullet.sel { background-position: 0 100%; }
.s-thumb { display: none; position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 3px; background: #fff; color: #000; font-size: 11px; text-align: center; white-space: nowrap; box-shadow: 0 0 4px rgba(0, 0, 0, 0.4); }
.s-thumb img { display: block; }
.s-bullet:hover .s-thumb, .s-bullet:focus-visible .s-thumb { display: block; }
.no-motion .slides { transition: none; }

.welcome-panel { background: var(--teal); min-height: 160px; text-align: center; padding: 13px 30px; display: grid; grid-template-columns: 1fr; }
.welcome-icon { text-align: center; padding-top: 25px; }
.welcome-text { margin: 0; padding: 0 20px; line-height: 34px; color: #fff; font-size: 2.4em; text-transform: uppercase; text-align: center; font-weight: 100; }
.welcome-text span { display: block; }
.welcome-para { background: var(--sky); padding: 10px; height: 197px; overflow: hidden; }

/* Content area */
.page { background: #fff; padding: 10px; }
.home-cols { display: block; }
.home-left { display: block; }
.col { padding: 0 15px; }
.col-head, .side-head { display: grid; grid-template-columns: 1fr; }
.col-head, .side-head { display: flex; align-items: flex-start; }
.col-head img, .side-head img { flex: 0 0 auto; width: 32px; height: 32px; margin-right: max(10px, calc(16.6667% - 32px)); }
.side-heading { font-size: 20px; margin: 8px 0 13.4px; line-height: normal; }
.hours { display: flex; }
.hours .days, .hours .times { line-height: 25px; padding-left: 15px; }
.hours .days { flex: 0 0 41.6667%; padding-left: 15px; }
.btn { display: inline-block; float: right; margin: 0 0 15px 15px; padding: 5px 10px; font-size: 12px; line-height: 18px; color: #fff; background: #428bca; border: 1px solid #357ebd; border-radius: 3px; }
.btn:hover, .btn:focus { color: #fff; background: #3071a9; }
.col::after { content: ""; display: block; clear: both; }

/* Title band */
.band { display: block; background: #fff; }
.band-title { background: var(--pale); padding: 40px 20px; }
.band-title h1 { margin: 0.67em 0; }
@media (min-width: 992px) {
    .band-title { position: relative; padding: 0; }
    .band-title h1 { position: absolute; top: 40px; left: 20px; right: 20px; }
}
.band-img img { display: block; width: 100%; height: auto; }

/* Two-column inner layout */
.split { display: block; }
.main, .side { padding: 0 15px; min-width: 0; }
.content { padding: 0 15px; }
.main::after, .content::after { content: ""; display: block; clear: both; }
.name { margin: 0.83em 0 15px; }
.head-lg { font-size: 20px; margin: 0.67em 0 15px; }
h3 { font-size: 12px; text-transform: uppercase; font-weight: 700; margin: 1em 0 10px; }
.photo { float: left; margin: 0 10px 0 0; }
.highlight { transition: all 0.7s ease; }
.highlight:hover { opacity: 0.8; box-shadow: 0 1px 8px #000; }
.list { margin: 0 0 10px; padding: 0 0 0 25px; line-height: 18px; text-align: justify; }
.list-circle { list-style: circle; }
.list-disc { list-style: disc; }
.list-square { list-style: square; }
.list-roman { list-style: upper-roman; }

.side-box { background: var(--pale); padding: 10px; margin-bottom: 10px; }
.side-list { margin: 0 0 10px; padding: 0 0 0 25px; list-style: square; font-size: 16px; line-height: 18px; text-align: justify; }
.side-list a { color: var(--dark); line-height: 22px; display: inline-block; }
.side-list a:hover { text-decoration: underline; }
.side-hours { margin-top: 23px; padding: 0 15px; }
.side-hours .hours { margin-top: 15px; }

.fees-table { width: 100%; max-width: 100%; margin: 0 0 20px; border-collapse: collapse; border: 1px solid #ddd; }
.fees-table th, .fees-table td { padding: 8px; border: 1px solid #ddd; vertical-align: top; text-align: left; line-height: 1.428571429; }
.fees-table th { vertical-align: bottom; font-weight: 700; }
.fees-table tbody tr:nth-child(odd) td { background: #f9f9f9; }
.fees-table .num { text-align: right; white-space: nowrap; width: 1%; }
.fees-effective { font-size: 18px; }
.note { display: block; }
.text-large { font-size: 24px; font-weight: 700; }
.map { border: 2px solid #ccc; padding: 5px; }

/* Accordion */
.accordion-split { display: block; }
.page.flush { padding: 0; }
.accordion { padding: 13px 15px 0; }
.tab-heading { margin: 0 0 23.4px; padding: 5px; padding-top: 10px; background: #f2f2f2; font-size: inherit; text-transform: none; }
.acc-toggle { display: flex; align-items: flex-start; width: 100%; padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-align: left; cursor: pointer; }
.acc-toggle img { flex: 0 0 auto; width: 32px; height: 32px; margin-right: max(8px, calc(8.3333% - 32px)); }
.acc-toggle .side-heading { text-transform: uppercase; }
.acc-panel { margin: -13px 0 20px; }
.acc-panel::after { content: ""; display: block; clear: both; }
.intro { background: var(--pale); padding: 13px 15px 15px; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; text-align: center; padding: 20px 0 15px; clear: both; }

/* Desktop (col-md) layout */
@media (min-width: 992px) {
    .site-header { display: grid; grid-template-columns: 25% 75%; }
    .brand { padding: 15px 30px 15px 0; }
    .head-info { grid-template-columns: 1fr 1fr; }
    .hero, .home-cols, .home-left, .band, .split, .accordion-split { display: grid; }
    .hero { grid-template-columns: 7fr 5fr; }
    .welcome-panel { grid-template-columns: 1fr 2fr; }
    .welcome-icon { padding: 0; }
    .home-cols { grid-template-columns: 7fr 5fr; }
    .home-left { grid-template-columns: 7fr 5fr; }
    .band { grid-template-columns: 5fr 7fr; }
    .split { grid-template-columns: 2fr 1fr; }
    .accordion-split { grid-template-columns: 1fr 1fr; }
    .hours .days { flex-basis: 41.6667%; }
}
@media (max-width: 991px) {
    .head-right { padding-top: 15px; }
    .info { padding-bottom: 10px; }
    .welcome-para { height: auto; }
    .side-hours { margin-top: 13px; }
}
@media (max-width: 767px) {
    .nav-bar { margin-top: 10px; padding: 0 15px; min-height: 50px; }
    .nav-toggle { display: block; float: right; margin: 8px 0; padding: 9px 10px; background: none; border: 1px solid #333; border-radius: 4px; cursor: pointer; }
    .nav-toggle .bar { display: block; width: 22px; height: 2px; margin-top: 4px; background: #fff; }
    .nav-toggle .bar:first-of-type { margin-top: 0; }
    .nav-list { display: none; clear: both; padding: 6px 0; }
    .nav-bar.open .nav-list { display: block; }
    .nav-list > li { display: block; }
    .dropdown-menu { position: static; margin: 0; }
    .welcome-text { padding-top: 20px; }
    .band-title { text-align: center; padding-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .slides, .highlight, a { transition: none; }
}
