/* Witt Building Company - base theme (reset, typography, layout, header, footer, buttons) */

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

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Colors from the live site's et-cache CSS: accent_color #ada745 in
   et_pb_custom, #top-header/current-nav/section_3(CTA) from
   wp-content/et-cache/global/et-divi-customizer-global.min.css */
:root {
    --color-primary: #ada745;         /* accent: current-nav, top bar, buttons */
    --color-dark: #000000;            /* mobile menu, CTA section bg */
    --color-tertiary: #333333;        /* headings */
    --color-background-light: #ffffff;
    --color-text-primary: #666666;    /* body text */
    --color-text-light: #ffffff;
    --color-border: #e5e5e5;

    --font-heading: 'Open Sans', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;

    --container-width: 80%;
    --container-max-width: 1080px;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-primary);
    background-color: var(--color-background-light);
    line-height: 1.7em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

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

strong {
    font-weight: 700;
}

ul, ol {
    list-style-position: inside;
    padding: 0 0 23px 1em;
    line-height: 26px;
}

p {
    padding-bottom: 1em;
    color: var(--color-text-primary);
}

p:last-of-type {
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-tertiary);
    line-height: 1.2em;
    font-weight: 500;
    padding-bottom: 10px;
}

h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 600; }
h6 { font-size: 14px; font-weight: 500; }

.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
}

#page-container {
    padding-top: 100px;
}

#main-content {
    background-color: var(--color-background-light);
}

/* ============================================
   TOP INFO BAR
   ============================================ */
#top-header {
    background-color: var(--color-primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

#et-info-phone {
    color: #fff;
    font-weight: 700;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#main-header {
    background-color: #fff;
    position: fixed;
    top: 33px;
    left: 0;
    right: 0;
    z-index: 99999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

#main-header.et-fixed-header {
    top: 0;
}

.et_menu_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo_container img {
    max-height: 60px;
    width: auto;
}

#et-top-navigation {
    display: flex;
    align-items: center;
}

#top-menu-nav {
    display: flex;
}

#top-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

#top-menu > li {
    position: relative;
}

#top-menu > li > a {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-tertiary);
    text-decoration: none;
}

#top-menu > li > a:hover,
#top-menu > li.current-menu-item > a {
    color: var(--color-primary);
}

#top-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 10;
}

#top-menu li.menu-item-has-children:hover .sub-menu {
    display: block;
}

#top-menu .sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    color: var(--color-tertiary);
    white-space: nowrap;
}

.mobile_menu_bar {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--color-tertiary);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.mobile_menu_bar::before {
    content: "\2630";
}

#mobile_menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--color-dark);
}

#mobile_menu.show {
    display: block;
}

#mobile_menu a {
    color: #fff;
}

#mobile_menu .mobile-submenu-item a {
    padding-left: 30px;
    font-size: 14px;
}

/* ============================================
   BUTTONS
   ============================================ */
.et_pb_button {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 3px;
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.et_pb_button:hover {
    background-color: var(--color-primary);
    color: #fff;
    opacity: 1;
}

/* ============================================
   PAGE TITLE BAND
   ============================================ */
.page-title-band {
    background-color: #2b2b2b;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.page-title-band h1 {
    color: #fff;
    padding-bottom: 0;
}

.page-title-band .post-categories {
    color: var(--color-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
    padding-bottom: 0;
}

.entry-content {
    padding: 40px 0;
}

/* ============================================
   FOOTER
   ============================================ */
#main-footer {
    background-color: var(--color-dark);
    color: #fff;
}

#footer-bottom {
    padding: 20px 0;
}

#footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#footer-info {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0;
}

#footer-info a {
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.et-social-icons {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.et-social-icon a i {
    font-size: 20px;
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
    #page-container {
        padding-top: 90px;
    }

    .mobile_menu_bar {
        display: block;
    }

    #top-menu-nav {
        display: none;
    }

    #mobile_menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
    }

    #mobile_menu li {
        margin-bottom: 10px;
    }

    #mobile_menu a {
        display: block;
        padding: 10px;
    }

    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
}

@media (max-width: 767px) {
    #top-header .container {
        text-align: center;
    }

    #footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}
