/* Patterson Lakes Dental Group
   Desktop measurements match the original Joomla/Gantry layout; below 1072px the layout stacks. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #a079bd url(../images/layout/body-pattern.png) left top repeat-x;
    color: #333;
    font: 12px/20.4px Geneva, Tahoma, "Nimbus Sans L", sans-serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Page frame */

.page {
    width: 1072px;
    margin: 20px auto 0;
    padding: 0 37px 51px;
    background:
        url(../images/layout/page-shadow-top.png) 50% 0 no-repeat,
        url(../images/layout/page-shadow-bottom.png) 50% 100% no-repeat;
}

.frame {
    padding: 25px 28px;
    border: 1px solid #fff;
    background: url(../images/layout/page-background.png);
}

/* Navigation */

.site-nav {
    margin-bottom: 15px;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    height: 40px;
    padding: 3px 15px 0;
    border-left: 1px solid #fff;
    border-right: 1px solid #d9d9d9;
    background: #fff url(../images/layout/nav-item.png) 0 -10px repeat-x;
    color: #a079bd;
    font-weight: bold;
    line-height: 36px;
    white-space: nowrap;
    text-shadow: 0 1px 0 #fff;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    background-position: 0 -50px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.1), -2px -2px 9px rgba(0, 0, 0, 0.1);
}

/* Banner, with a curled shadow underneath */

.banner {
    position: relative;
    margin-bottom: 26px;
    padding: 8px;
    border: 1px solid #fff;
    background: #fff url(../images/layout/banner-background.png) 0 100% repeat-x;
    box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.1), -2px -2px 9px rgba(0, 0, 0, 0.1);
}

.banner::after,
.side-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 26px;
    background:
        url(../images/layout/left-bottom-shadow.png) 0 100% no-repeat,
        url(../images/layout/right-bottom-shadow.png) 100% 100% no-repeat;
}

/* Absolute offsets are measured from inside the banner's 1px border. */
.banner::after {
    top: calc(100% + 1px);
    left: -1px;
    right: -1px;
}

.banner img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: left center;
}

/* Two columns: content and sidebar */

.columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content {
    flex: 0 0 620px;
    margin: 10px 0;
    padding: 6px;
    background: #fff;
    box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.1), -2px -2px 9px rgba(0, 0, 0, 0.1);
    font: 16px/20.4px Arial, Helvetica, sans-serif;
}

.content-inner {
    padding: 15px 15px 35px;
    border: 1px solid #dcdcdc;
}

.sidebar {
    flex: 0 0 300px;
    padding-bottom: 23px;
}

/* Content typography */

.content p,
.content h1,
.content h2,
.content h3,
.content ul {
    margin-top: 0;
    margin-bottom: 0;
}

.content p {
    padding-bottom: 15px;
}

.content h1,
.content h2 {
    color: #6f23ad;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.content h1 {
    line-height: 26.4px;
    padding-bottom: 15px;
}

.content h2 {
    line-height: 20.4px;
    margin-top: 15px;
    padding-bottom: 15px;
}

.content h3 {
    padding-bottom: 6px;
    color: #6f23ad;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
}

.content ul {
    margin: 10px 0 27.5px;
    padding-left: 15px;
    list-style: square;
}

.content .phone {
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}

.content .map {
    margin-top: 35.4px;
}

.content .map img {
    display: block;
    margin: 0 auto;
}

/* Page-specific content styles */

.content--home p,
.content--home li,
.content--toothaches-and-broken-fillings p {
    font-weight: bold;
}

.content--dentists-and-staff p,
.content--faq p,
.content--faq h2 {
    text-align: justify;
}

.content--faq h2 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.content--toothaches-and-broken-fillings .after-hours {
    color: #000;
    line-height: 24.2px;
}

.content--contact-us p {
    color: #000;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.content--contact-us .phone {
    font-size: 32px;
}

.content--contact-us h2 {
    margin-top: 35.4px;
}

/* Lines spaced 41.4px apart, offset so each line sits where the original's 26.4px line boxes did. */
.content--contact-us .lines {
    margin-top: -7.5px;
    padding-bottom: 7.5px;
    line-height: 41.4px;
}

.content--contact-us .lines + h2 {
    margin-top: 44.4px;
    padding-bottom: 18px;
}

/* Sidebar boxes */

.side-box {
    position: relative;
    margin: 10px 0 0;
    padding: 28.9px 16px 23.5px;
    background: #4b5592;
    font: 24px/35.4px Arial, Helvetica, sans-serif;
    text-align: center;
}

.side-box + .side-box {
    margin-top: 33px;
}

.side-box::after {
    height: 23px;
    background-image:
        url(../images/layout/left-bottom-shadow-small.png),
        url(../images/layout/right-bottom-shadow-small.png);
}

.side-box p,
.side-box h2 {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.side-box h2 {
    font-weight: bold;
    text-transform: uppercase;
}

.side-box--call {
    padding-top: 43.9px;
    padding-bottom: 43.9px;
    font-weight: bold;
}

.side-box--call .call-intro {
    margin-bottom: 25.1px;
    color: #33cc00;
}

.side-box--call .call-phone {
    margin-bottom: 15.1px;
    color: #33cc00;
    font-size: 36px;
    line-height: 56px;
    white-space: nowrap;
}

.side-box--call .call-after {
    color: #33cccc;
}

.side-box--hours {
    color: #ff6600;
}

.side-box--hours table {
    border-collapse: collapse;
    text-align: left;
}

.side-box--hours th,
.side-box--hours td {
    padding: 0;
    font-weight: normal;
}

.side-box--hours th {
    width: 67px;
}

.side-box--address {
    color: #f4e92f;
}

/* Footer */

.site-footer {
    margin: 10px 0;
    color: #fff;
    text-align: center;
}

/* Narrow screens */

@media (max-width: 1071px) {
    .page {
        width: auto;
        margin: 0;
        padding: 0;
        background: none;
    }

    .frame {
        padding: 10px;
        border: 0;
    }

    .site-nav a {
        padding: 3px 10px 0;
    }

    .banner {
        padding: 4px;
    }

    .banner img {
        height: auto;
    }

    .columns {
        display: block;
    }

    .content .map img {
        width: 100%;
    }

    .content h1,
    .content h2,
    .content--contact-us p,
    .content--contact-us .lines {
        line-height: 1.3;
    }

    .content--contact-us p {
        font-size: 20px;
    }

    .content--contact-us .lines {
        margin-top: 0;
        padding-bottom: 15px;
    }

    .content--contact-us .lines + h2 {
        margin-top: 35.4px;
        padding-bottom: 15px;
    }
}
