/* Shepherd's Loft Base Theme - Following Web Design Style Guide */
/* This is the base theme with common styles. Site-specific overrides go in child themes. */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */
*, *::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;
}

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* Colors - aligned with WEB-DESIGN-STYLE-GUIDE.md (Dawsonville Home Builder) */
    --color-primary: #2EA3F2;        /* accent: links, buttons, nav active */
    --color-secondary: #2EA3F2;      /* accent (same) */
    --color-tertiary: #333333;       /* headings, dark text */
    --color-background-light: #ffffff;
    --color-text-primary: #666666;  /* body text */
    --color-text-secondary: #666666;
    --color-text-light: #ffffff;
    --color-border: #e5e5e5;
    --color-footer: #222222;        /* main footer container */
    
    /* Typography */
    --font-heading: 'DM Sans', Helvetica, Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    
    /* Spacing */
    --spacing-base: 8px;
    --container-width: 80%;
    --container-max-width: 1080px;
    --grid-gap: 5.5%;
}

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-secondary);
    text-decoration: none;
}

a:hover {
    color: #1a8ad4;  /* darker blue hover */
}

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;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
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: 64px;
    font-weight: 700;
    line-height: 1.15em;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2em;
    margin-bottom: 20px;
}

h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3em;
    margin-bottom: 16px;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

h5 {
    font-size: 16px;
    font-weight: 600;
}

h6 {
    font-size: 14px;
    font-weight: 500;
}

/* Typography Utilities */
.subtitle {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 0;
}

.lead-text {
    font-size: 18px;
    line-height: 1.7em;
    color: var(--color-text-primary);
}

.small-text {
    font-size: 14px;
    line-height: 1.6em;
    color: #666666;
}

/* ============================================
   3. LAYOUT SYSTEM
   ============================================ */
.container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

.container-narrow {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

#page-container {
    position: relative;
    padding-top: 85px;  /* Clear fixed header: ~54px logo + 15px*2 padding ≈ 84px */
}

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

.footer-content {
    grid-column: 1 / -1;
}

/* Grid/section/component classes (.sl-row, .sl-column, .sl-section, etc.) now live in
   the shortcodes module's static/css/shortcodes.css. */

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

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 54px;
    width: auto;
}

.logo .site-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-tertiary);
    margin: 0;
}

.logo .site-title a {
    color: inherit;
}

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

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

#top-menu a {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

#top-menu a:hover,
#top-menu a.active {
    color: var(--color-primary);
}

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

.mobile_menu_bar::before {
    content: "☰";
}

#mobile_menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile_menu.show {
    display: block;
}

/* ============================================
   6. BUTTONS
   ============================================ */
.et_pb_button,
.btn-primary {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 22px 12px;
    border-radius: 37px;
    border: none;
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.et_pb_button:hover,
.btn-primary:hover {
    background-color: #1a8ad4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 163, 242, 0.3);
}

.et_pb_button.button-secondary,
.btn-secondary {
    background-color: #848484;
    color: #ffffff;
}

.et_pb_button.button-secondary:hover,
.btn-secondary:hover {
    background-color: #6a6a6a;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.button-row {
    margin-top: 30px;
}

.button-row .sl-column:first-child {
    text-align: right;
}

.button-row .sl-column:last-child {
    text-align: left;
}

@media (max-width: 980px) {
    .button-row .sl-column {
        text-align: center !important;
    }
}

/* ============================================
   7. COMPONENTS
   ============================================ */
/* Blurb/Stats/Cause-list/Section-header component styles now live in the shortcodes
   module's static/css/shortcodes.css. */

/* ============================================
   8. FOOTER
   ============================================ */
#main-footer {
    background-color: var(--color-footer);
    color: var(--color-text-light);
}

/* Footer content area - site-specific content (sites can override footer-content partial) */
#footer-widgets.footer-content-area {
    padding: 4% 0 0;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
}

#main-footer .footer-content {
    text-align: center;
}

#main-footer .footer-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text-light);
    line-height: 1.3em;
    margin-bottom: 12px;
}

#main-footer .footer-address {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin: 0 0 20px;
}

#main-footer .footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding-bottom: 4%;
}

#main-footer .footer-buttons .et_pb_button {
    margin: 0;
}

/* Footer bottom - reusable bar (params: copyrightName, websiteHost, facebook/facebookURL, rss) */
#footer-bottom {
    background-color: rgba(0,0,0,0.32);
    padding: 15px 0 5px;
    margin-top: 0;
}

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

#footer-info {
    text-align: left;
    color: var(--color-text-secondary);
    padding-bottom: 10px;
    font-size: 14px;
    margin: 0;
}

#footer-info a {
    font-weight: 700;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: opacity 0.4s ease-in-out;
}

#footer-info a:hover {
    opacity: 0.7;
}

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

.et-social-icons li {
    display: inline-block;
}

.et-social-icon a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.4s ease-in-out;
    position: relative;
    text-align: center;
}

.et-social-icon a:hover {
    opacity: 0.7;
}

.et-social-icon span {
    display: none;
}

.et-social-icon a i {
    font-size: 24px;
    color: var(--color-text-secondary);
    transition: opacity 0.4s ease-in-out;
}

.et-social-icon a:hover i {
    opacity: 0.7;
}

/* ============================================
   9. UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-primary); }
.text-muted { color: var(--color-text-secondary); }
.text-white { color: #ffffff; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* ============================================
   10. RESPONSIVE STYLES
   ============================================ */
@media (max-width: 980px) {
    #page-container {
        padding-top: 80px;
    }
    
    .header-container {
        width: 90%;
    }

    .mobile_menu_bar {
        display: block;
    }
    
    #top-menu-nav {
        display: none;
    }
    
    #mobile_menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    #mobile_menu li {
        margin-bottom: 10px;
    }
    
    #mobile_menu a {
        display: block;
        padding: 10px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h4 {
        font-size: 16px;  /* Style guide: 16px on mobile */
    }
    
    .footer-title {
        font-size: 28px;
    }
    
    .footer-address {
        font-size: 16px;
    }
    
    /* Footer bottom - stack and center on tablet */
    #footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .et-social-icons {
        text-align: center;
        margin: 0 0 5px;
    }
    
    #footer-info {
        text-align: center;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;  /* Style guide: 14px on mobile */
    }
    
    .header-container {
        width: 95%;
    }

    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .et_pb_button {
        font-size: 16px;
        padding: 12px 18px 10px;
    }
    
    .footer-title {
        font-size: 28px;
    }
    
    .footer-address {
        font-size: 16px;
    }
}

