/*
 Theme Name:   Kadence Child
 Theme URI:    https://www.kadencewp.com/
 Description:  Child theme for Kadence
 Author:       Robert Colucci
 Author URI:   https://www.robertcolucci.com
 Template:     kadence
 Version:      1.0.0
*/

/* Import parent theme styles */
@import url("../kadence/style.css");


/* ============================
   SAFE FOOTER SPACING FIX
   (Does NOT break Kadence layout)
============================ */
#inner-wrap,
#content,
.content-wrap {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}


/* ============================
   LOCAL FONTS
============================ */
@font-face {
  font-family: 'Lato';
  src: url('/wp-content/themes/kadence/fonts/lato-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('/wp-content/themes/kadence/fonts/lato-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/wp-content/themes/kadence/fonts/montserrat-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================
   BASE TYPOGRAPHY
============================ */
body {
    font-family: 'Lato', sans-serif;
    color: #222;
    background: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}


/* ============================
   HEADER
============================ */
header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

header img {
    max-height: 60px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    header {
        padding: 10px 16px;
    }
    header img {
        max-height: 50px;
    }
}


/* ============================
   HERO — FULL IMAGE, NO CROP
============================ */
.hero-home {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Shader overlay */
.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* Text above shader */
.hero-home .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
    padding: 0 20px;
}

.hero-home h1,
.hero-home p,
.hero-home a,
.hero-home .subtitle {
    color: #ffffff !important;
}

.hero-home .subtitle a {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-home {
        aspect-ratio: 1200 / 700;
        background-size: contain;
        background-position: center top;
    }
}


/* ============================
   DARK MODE FOOTER (RESTORED)
============================ */
.custom-footer {
    background: #111;
    padding: 50px 20px;
    border-top: 1px solid #222;
    font-family: 'Lato', sans-serif;
    color: #ffffff;
}

.custom-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.custom-footer .footer-col {
    flex: 1;
    min-width: 220px;
}

.custom-footer h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 14px;
    color: #ffffff;
}

.custom-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-footer ul li {
    margin-bottom: 8px;
}

.custom-footer ul li a {
    color: #4da3ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-footer ul li a:hover {
    color: #82c3ff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #cccccc;
    font-size: 14px;
}

@media (max-width: 768px) {
    .custom-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .custom-footer .footer-col {
        min-width: 100%;
    }
}

/* FIX FOR COUNTY PAGES USING RAW HTML BLOCKS */
.entry-content .wp-block-html {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    box-sizing: border-box;
    display: block;
}