/*
 * Walker Building Center theme.
 * Colors, sizes and breakpoints (481 / 768 / 1030px) follow the original WordPress theme.
 */

/* Lato, self-hosted (SIL Open Font License, see ../fonts/OFL.txt) */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-italic.woff2") format("woff2"); }

:root {
    --tan: #ccbbaa;
    --tan-light: #d9cdc0;
    --brown: #996644;
    --brown-light: #b7825e;
    --dark: #141612;
    --nav-text: #221111;
    --input-bg: #c8c8d2;
    --input-bg-focus: #d3d3db;
    --font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

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

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

/* Full-height column so the footer sits at the bottom of the window on short pages. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* excludes mobile browser toolbars where supported */
    margin: 0;
    font-family: var(--font);
    font-size: 100%;
    line-height: 1.5;
    color: #000;
    background: var(--tan) url("../images/bg-wood-floor.jpg") center center / cover no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.home { background-image: none; }

img { border: 0; }

a { color: var(--brown); }
a:hover, a:focus { color: var(--brown-light); }
a:active { color: var(--input-bg); }

:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

h1, h2, h3, h4, h5 { font-weight: 400; text-rendering: optimizeLegibility; }
h1 { font-size: 2.5em; line-height: 1.333; }
h2 { font-size: 1.75em; line-height: 1.4; margin-bottom: 0.175em; }

p { overflow-wrap: break-word; }

.wrap { width: 96%; margin-left: auto; margin-right: auto; }

.skip-link {
    position: absolute;
    left: 0.5em;
    top: -3em;
    z-index: 100;
    padding: 0.5em 1em;
    background: #fff;
    color: #000;
}
.skip-link:focus { top: 0.5em; }

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 10;
    background-color: #fff;
    box-shadow: 0 0 9px 3px rgba(0, 0, 0, 0.55);
}

.top-nav {
    background-color: var(--tan);
    box-shadow: 0 -12px 15px -12px rgba(0, 0, 0, 0.35) inset;
}

.nav {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.nav a {
    display: block;
    padding: 0.75em;
    color: var(--nav-text);
    text-decoration: none;
}

/* Menu button: phones only. theme.js opens and closes the menu. */
.nav-toggle-row {
    display: flex;
    justify-content: flex-end;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.75em;
    font: inherit;
    color: var(--nav-text);
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { background-color: var(--tan-light); }

.nav-toggle svg {
    width: 1.4em;
    height: 1.4em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 767px) {
    .top-nav:not(.is-open) .nav { display: none; }
    .top-nav.is-open .nav { border-top: 1px solid rgba(34, 17, 17, 0.15); }
}

.header-inner { text-align: center; }

.header-logo { display: inline-block; }

.header-logo img {
    display: block;
    margin: 0.2em auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
}

.header-phone {
    margin: 0.65em auto;
    font-size: 1.45em;
    font-weight: 700;
}

.header-phone a { color: inherit; text-decoration: none; }

/* ---------- Home page slider ---------- */

.home-slider {
    border-top: 1px solid var(--dark);
    border-bottom: 1px solid var(--dark);
    background: url("../images/bg-wood-floor.jpg") center center / cover;
    box-shadow: 0 -10px 12px -5px rgba(0, 0, 0, 0.55) inset;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 1000 / 383;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5), 6px 0 10px rgba(0, 0, 0, 0.5), -6px 0 10px rgba(0, 0, 0, 0.5);
}

.slider-slides { position: absolute; inset: 0; }

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease;
}

.slide-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.slide-link:hover, .slide-link:focus { color: inherit; }

.slide-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.2em 1.35em 0.85em;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-title {
    margin: 0 0 0.2em;
    font-weight: 700;
    text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.75);
}

.slide-text { margin: 0; }

.slider-btn,
.slider-pause {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.2s ease;
}

.slider-btn[hidden], .slider-pause[hidden] { display: none; }

.slider-btn:hover, .slider-pause:hover { background-color: rgba(0, 0, 0, 0.7); }

.slider-btn {
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    opacity: 0;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider:hover .slider-btn,
.slider:focus-within .slider-btn { opacity: 1; }

.slider-pause {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

.slider:hover .slider-pause,
.slider-pause:focus-visible { opacity: 1; }

.slider svg {
    width: 60%;
    height: 60%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slider-pause .icon-play { fill: currentColor; }
.slider-pause .icon-play,
.slider.is-paused .slider-pause .icon-pause { display: none; }
.slider.is-paused .slider-pause .icon-play { display: block; }

@media (max-width: 699px) {
    .slider-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .slide, .slide.is-active { transition: none; }
}

/* ---------- Content ---------- */

.hentry {
    background-color: #fff;
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.45);
}

.article-header {
    padding: 1em 1.5em;
    color: #fff;
    text-shadow: 0 2px 5px var(--dark);
    background-color: var(--brown);
}

.page-title { margin: 0; }

.entry-content { padding: 1.5em 1.5em 0; }

.entry-content::after { content: ""; display: table; clear: both; }

.entry-content p { margin: 0 0 1.5em; }

.entry-content ul,
.entry-content ol { padding: 0.9em 1em 1.2em; list-style-position: inside; }

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 0 0 1.5em;
}

.entry-content .size-medium { width: 300px; }

.entry-content .aligncenter {
    display: block;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

.article-footer {
    padding: 1.5em;
    border-top: 1px solid var(--tan);
}

/* Captioned image */
.entry-content figure.caption {
    max-width: 100%;
    margin: 0 0 1.5em;
    padding: 5px;
    background: #eee;
}

.entry-content figure.caption.alignright { width: 310px; }

.entry-content figure.caption p { margin: 0; }

.entry-content figure.caption img {
    display: block;
    width: 100%;
    margin: 0;
}

.entry-content figure.caption figcaption {
    margin: 4px 0 7px;
    font-size: 0.85em;
    text-align: center;
}

@media (min-width: 481px) {
    .entry-content .alignleft { float: left; margin-right: 1.5em; }
    .entry-content .alignright { float: right; margin-left: 1.5em; }
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5em 8px;
    clear: both;
    margin: 1.25em 4px 1.5em;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    line-height: 0;
    border: 2px solid #cfcfcf;
}

.gallery-item a { display: block; }

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    transition: transform 0.3s ease;
}

.gallery-item a:hover img,
.gallery-item a:focus-visible img { transform: scale(1.05); }

/* Lightbox (created by theme.js) */
.lightbox {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
}

.lightbox::backdrop { background-color: rgba(0, 0, 0, 0.88); }

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 3.5em 3.5em 1.5em;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 4em);
    object-fit: contain;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.lightbox-caption { margin-top: 0.75em; text-align: center; }
.lightbox-caption strong { display: block; }

.lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    font: 700 28px/1 var(--font);
    cursor: pointer;
}

.lightbox button:hover { background-color: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; margin-top: -22px; }
.lightbox-next { right: 10px; top: 50%; margin-top: -22px; }

/* ---------- Sidebar ---------- */

.sidebar {
    padding: 0 1em;
    font-size: 1.4em;
    text-align: center;
    background-color: #fff;
}

.widget { margin: 2.2em 0; }
.widget:first-child { margin-top: 0; }

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

.widgettitle {
    margin: 0 0 0.25em;
    padding-top: 0.5em;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.5;
}

/* ---------- Forms ---------- */

.form-field { margin: 0; }

.form-label label {
    display: inline-block;
    font-weight: 700;
}

/* Show "(required)" instead of the form plugin's asterisk, like the old contact form. */
.form-label .required { font-size: 0; }
.form-label .required::after {
    content: "(required)";
    font-size: 0.8rem;
    font-weight: 400;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content select,
.entry-content textarea {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 40px;
    margin-bottom: 14px;
    padding: 0 12px;
    font: inherit;
    line-height: 40px;
    color: #000;
    background-color: var(--input-bg);
    border: 0;
    border-radius: 3px;
    transition: background-color 0.24s ease-in-out;
}

.entry-content textarea {
    max-width: 100%;
    min-height: 120px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.5;
    resize: vertical;
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus {
    background-color: var(--input-bg-focus);
    outline: 2px solid var(--brown);
    outline-offset: 0;
}

.form-field.has-errors input,
.form-field.has-errors textarea { box-shadow: inset 0 0 0 2px #c0392b; }

.form-errors,
.form-field .form-errors p {
    margin: -8px 0 14px;
    font-size: 0.9em;
    color: #8a1f11;
}

.buttons { margin: 14px 0 1.5em; }

.buttons .button {
    display: block;
    width: 100%;
    padding: 0.25em 1em;
    font: inherit;
    color: #000;
    background-color: #efefef;
    border: 1px solid #767676;
    border-radius: 3px;
    cursor: pointer;
}

.buttons .button:hover { background-color: #e5e5e5; }

.notices {
    margin: 0 0 1.5em;
    padding: 0.75em 1em;
    border: 1px solid;
    border-radius: 3px;
}

.notices p { margin: 0; }
.notices.green, .notices.success, .notices.info { color: #264409; background-color: #e6efc2; border-color: #c6d880; }
.notices.red, .notices.error { color: #8a1f11; background-color: #fbe3e4; border-color: #fbc2c4; }
.notices.yellow, .notices.warning { color: #514721; background-color: #fff6bf; border-color: #ffd324; }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: auto;
    color: #f1f1fb;
    background-color: var(--dark);
}

.copyright {
    margin: 0 auto;
    padding: 1em 0;
    font-size: 0.7em;
    text-align: center;
}

.copyright a { color: #fff; text-decoration: none; }

/* ---------- Tablet and up ---------- */

@media (min-width: 768px) {
    .wrap { width: 760px; }

    .nav-toggle-row { display: none; }

    .nav { display: flex; flex-wrap: wrap; }

    .nav a { transition: background-color 0.3s ease-in; }

    .nav a:hover,
    .nav a:focus-visible {
        background-color: var(--tan-light);
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .header-logo img { height: 60px; margin: 0.2em 0; }

    .header-phone { margin: 0.65em 0; text-align: right; }

    .home-slider { padding: 2.5em 0; }

    .slide-info {
        padding-top: 1.5em;
        background-color: transparent;
        background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.95) 90%);
    }

    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .has-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 0.75em;
        align-items: start;
    }

    .sidebar {
        margin-top: 2em;
        padding: 0;
        font-size: 1.1em;
        text-align: left;
        border-radius: 3px;
    }

    .widget { margin: 2.2em 0; padding: 0 10px; }
    .widget:first-child { margin-top: 0.75em; }
    .widget:last-child { margin-bottom: 0.75em; }

    .widgettitle { border-bottom: 2px solid var(--dark); }
}

/* ---------- Desktop ---------- */

@media (min-width: 1030px) {
    .wrap { width: 1040px; }

    .has-sidebar { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr); }
}

@media print {
    .top-nav, .home-slider, .sidebar, .site-footer { display: none; }
    a { color: #444; text-decoration: underline; }
}
