/*
Theme Name: Chandler AZ Pest Control Blog - Kadence Child
Description: Branded Kadence child theme for ChandlerAZPestControl.com blog.
Template: kadence
Version: 1.1.0
Text Domain: chandler-az-pest-control-blog
*/

:root {
    --capc-navy: #081a28;
    --capc-navy-2: #0b1e2c;
    --capc-green: #1f7a58;
    --capc-green-dark: #176344;
    --capc-green-light: #eaf5f0;
    --capc-text: #26333d;
    --capc-muted: #69757e;
    --capc-border: #dfe5e8;
    --capc-white: #fff;
    --capc-container: 1180px;
}

html { margin: 0 !important; scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--capc-text);
    background: #fff;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: "Poppins", Arial, Helvetica, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; }
a { color: var(--capc-green); text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
a:hover { color: var(--capc-green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--capc-green); outline-offset: 2px; }
::selection { background: var(--capc-green); color: #fff; }

/* =========================================================
   HEADER - matches supplied desktop/mobile reference
   ========================================================= */
.capc-site-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    width: 100%;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #eceff1;
    box-shadow: 0 1px 5px rgba(0,0,0,.035);
}
.capc-nav-inner {
    width: min(var(--capc-container), calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.capc-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    line-height: 0;
}
.capc-brand img {
    display: block;
    width: 150px;
    height: auto;
}
.capc-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.capc-menu a {
    color: #30363b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.capc-menu a:hover { color: var(--capc-green); text-decoration: none; }
.capc-phone {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    margin-left: 145px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--capc-navy);
    color: #fff !important;
    font-size: 17px;
    line-height: 1;
    text-decoration: none !important;
}
.capc-phone:hover { background: var(--capc-green); color: #fff !important; }
.capc-mobile-toggle, .capc-mobile-panel { display: none; }

/* =========================================================
   BLOG CONTENT / KADENCE OVERRIDES
   ========================================================= */
.capc-main,
.psb-content-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 24px 70px;
    min-height: 450px;
}
.entry-content,
.single-content,
.wp-block-post-content {
    color: var(--capc-text);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}
.entry-content p,
.single-content p,
.wp-block-post-content p {
    margin: 0 0 18px;
    color: var(--capc-text);
    font-size: 16px;
    line-height: 1.75;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.single-content h1, .single-content h2, .single-content h3, .single-content h4, .single-content h5, .single-content h6,
.wp-block-post-content h1, .wp-block-post-content h2, .wp-block-post-content h3, .wp-block-post-content h4, .wp-block-post-content h5, .wp-block-post-content h6 {
    color: var(--capc-navy);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}
h1, .entry-content h1, .single-content h1, .wp-block-post-content h1 {
    font-size: 40px; line-height: 1.2; margin: 0 0 22px;
}
h2, .entry-content h2, .single-content h2, .wp-block-post-content h2 {
    font-size: 32px; line-height: 1.25; margin: 36px 0 17px;
}
h3, .entry-content h3, .single-content h3, .wp-block-post-content h3 {
    font-size: 26px; line-height: 1.3; margin: 30px 0 15px;
}
h4, .entry-content h4, .single-content h4, .wp-block-post-content h4 {
    font-size: 22px; line-height: 1.35; margin: 26px 0 13px;
}
h5, .entry-content h5, .single-content h5, .wp-block-post-content h5 {
    font-size: 19px; line-height: 1.4; margin: 22px 0 11px;
}
h6, .entry-content h6, .single-content h6, .wp-block-post-content h6 {
    font-size: 17px; line-height: 1.45; margin: 20px 0 10px;
}

/* Lists */
.entry-content ul, .entry-content ol,
.single-content ul, .single-content ol,
.wp-block-post-content ul, .wp-block-post-content ol {
    margin: 0 0 22px;
    padding-left: 28px;
    color: var(--capc-text);
}
.entry-content ul, .single-content ul, .wp-block-post-content ul { list-style: disc; }
.entry-content ol, .single-content ol, .wp-block-post-content ol { list-style: decimal; }
.entry-content li, .single-content li, .wp-block-post-content li {
    margin: 0 0 8px;
    padding-left: 2px;
    line-height: 1.65;
}
.entry-content li:last-child, .single-content li:last-child, .wp-block-post-content li:last-child { margin-bottom: 0; }
.entry-content ul ul, .entry-content ol ol, .entry-content ul ol, .entry-content ol ul,
.single-content ul ul, .single-content ol ol, .single-content ul ol, .single-content ol ul,
.wp-block-post-content ul ul, .wp-block-post-content ol ol, .wp-block-post-content ul ol, .wp-block-post-content ol ul { margin-top: 7px; margin-bottom: 7px; }

/* Content links */
.entry-content a, .single-content a, .wp-block-post-content a { color: var(--capc-green); }
.entry-content a:hover, .single-content a:hover, .wp-block-post-content a:hover { color: var(--capc-green-dark); text-decoration: underline; }

/* Quote / pullquote */
.entry-content blockquote, .single-content blockquote, .wp-block-post-content blockquote,
blockquote.wp-block-quote {
    margin: 28px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--capc-green);
    background: #f4f8f6;
    color: var(--capc-text);
    font-size: 18px;
    line-height: 1.65;
    font-style: italic;
}
.entry-content blockquote p, .single-content blockquote p, .wp-block-post-content blockquote p { margin-bottom: 10px; }
blockquote cite, .wp-block-quote cite { display: block; margin-top: 10px; color: var(--capc-muted); font-size: 14px; font-style: normal; font-weight: 600; }
.wp-block-pullquote { margin: 35px 0; padding: 25px 0; border-top: 3px solid var(--capc-green); border-bottom: 3px solid var(--capc-green); }
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; background: transparent; font-size: 22px; }

/* Images / figures */
.entry-content figure, .single-content figure, .wp-block-post-content figure { margin: 25px 0; }
.entry-content img, .single-content img, .wp-block-post-content img { max-width: 100%; height: auto; }
.wp-block-image img { display: block; }
.wp-block-image figcaption, .wp-element-caption, figcaption, .wp-caption-text {
    margin-top: 8px;
    color: var(--capc-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* Tables */
.entry-content table, .single-content table, .wp-block-post-content table, .wp-block-table table {
    width: 100%; margin: 25px 0 30px; border-collapse: collapse; border-spacing: 0; font-size: 16px;
}
.entry-content th, .entry-content td, .single-content th, .single-content td,
.wp-block-post-content th, .wp-block-post-content td, .wp-block-table th, .wp-block-table td {
    padding: 12px 15px; border: 1px solid var(--capc-border); text-align: left; vertical-align: top;
}
.entry-content th, .single-content th, .wp-block-post-content th, .wp-block-table th { background: #f4f7f8; font-weight: 700; }

/* Code */
.entry-content code, .single-content code, .wp-block-post-content code {
    padding: 2px 6px; border-radius: 3px; background: #f2f5f6; color: var(--capc-navy); font-family: Consolas, Monaco, monospace; font-size: 14px;
}
.entry-content pre, .single-content pre, .wp-block-post-content pre, .wp-block-code {
    margin: 25px 0; padding: 20px; overflow-x: auto; border: 1px solid var(--capc-border); border-radius: 4px; background: #f4f6f7; font: 14px/1.6 Consolas, Monaco, monospace;
}
.entry-content pre code, .single-content pre code, .wp-block-post-content pre code { padding: 0; background: transparent; }

/* Buttons / separators / embeds */
.wp-block-button__link, .wp-element-button, .entry-content .button {
    display: inline-block; padding: 12px 22px; border: 1px solid var(--capc-green); border-radius: 4px; background: var(--capc-green); color: #fff !important; font-weight: 700; text-decoration: none !important;
}
.wp-block-button__link:hover, .wp-element-button:hover, .entry-content .button:hover { background: var(--capc-green-dark); border-color: var(--capc-green-dark); }
.entry-content hr, .single-content hr, .wp-block-post-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--capc-border); margin: 35px 0; }
.wp-block-embed, .wp-block-video { margin: 25px 0; }
.wp-block-embed iframe, .wp-block-video video { max-width: 100%; }

/* Post title/meta */
.entry-title, .single-entry-title, .wp-block-post-title, .page-title {
    color: var(--capc-navy);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}
.entry-meta, .posted-on, .byline, .cat-links, .tags-links { color: var(--capc-muted); font-size: 13px; }
.entry-meta a, .posted-on a, .byline a, .cat-links a, .tags-links a { color: var(--capc-green); }

/* =========================================================
   FOOTER - matches supplied desktop/mobile reference
   ========================================================= */
.capc-footer {
    width: 100%;
    background: var(--capc-navy);
    color: #b7c1c8;
    padding: 58px 0 26px;
}
.capc-footer-main {
    width: min(var(--capc-container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr .85fr .85fr 1.05fr;
    gap: 64px;
    align-items: start;
}
.capc-footer-brand { min-width: 0; }
.capc-footer-logo {
    width: 185px;
    margin: 0 0 15px;
    border-radius: 11px;
    background: #fff;
}
.capc-footer-logo img { display: block; width: 100%; height: auto; }
.capc-footer-brand > p {
    max-width: 270px;
    margin: 0;
    color: #b7c1c8;
    font-size: 12px;
    line-height: 1.55;
}
.capc-footer-col h3 {
    margin: 0 0 17px;
    color: #fff;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: uppercase;
}
.capc-footer-col ul {
    margin: 0;
    padding-left: 17px;
    list-style: disc;
}
.capc-footer-col li {
    margin: 0 0 10px;
    padding: 0;
    color: #b7c1c8;
    font-size: 12px;
    line-height: 1.45;
}
.capc-footer-col li a, .capc-footer a { color: #b7c1c8; }
.capc-footer-col li a:hover, .capc-footer a:hover { color: #fff; text-decoration: none; }
.capc-contact p {
    margin: 0 0 11px;
    color: #b7c1c8;
    font-size: 12px;
    line-height: 1.55;
}
.capc-contact p a { color: #b7c1c8; }
.capc-social { display: flex; gap: 12px; margin-top: 17px; }
.capc-social a {
    width: 31px; height: 31px; border: 1px solid #64727d; border-radius: 50%;
    display: grid; place-items: center; color: #fff !important; font-size: 14px; text-decoration: none !important;
}
.capc-social a:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.capc-footer-bottom,
.capc-disclaimer {
    width: min(var(--capc-container), calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}
.capc-footer-bottom {
    margin-top: 38px;
    padding: 21px 0;
    border-top: 1px solid #354653;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #aeb9c1;
    font-size: 10px;
    line-height: 1.5;
}
.capc-footer-bottom p { margin: 0; }
.capc-footer-bottom > div { display: flex; align-items: center; gap: 22px; }
.capc-footer-bottom a { white-space: nowrap; }
.capc-disclaimer {
    padding-top: 17px;
    border-top: 1px solid #354653;
    color: #7f8c95;
    font-size: 9px;
    line-height: 1.5;
}
.capc-disclaimer p { margin: 0 0 20px; }
.capc-mobile-cta { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .capc-phone { margin-left: 55px; }
    .capc-menu { gap: 22px; }
    .capc-footer-main { gap: 35px; }
}

@media (max-width: 900px) {
    body { padding-bottom: 72px; }
    .capc-site-header { height: 72px; }
    .capc-nav-inner {
        width: 100%;
        height: 72px;
        padding: 0 23px;
    }
    .capc-brand img { width: 155px; }
    .capc-menu, .capc-phone { display: none; }
    .capc-mobile-toggle {
        display: flex;
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin-left: auto;
        padding: 5px;
        border: 0;
        border-radius: 0;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
    .capc-mobile-toggle span { display: block; width: 19px; height: 2px; background: var(--capc-navy); }
    .capc-mobile-panel {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        padding: 12px 24px 20px;
        background: #fff;
        border-top: 1px solid #eceff1;
        box-shadow: 0 6px 14px rgba(0,0,0,.10);
    }
    .capc-mobile-panel.open { display: block; }
    .capc-mobile-panel a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eef1f2;
        color: var(--capc-navy);
        font-size: 14px;
        font-weight: 500;
    }
    .capc-mobile-panel a:last-child { border-bottom: 0; }
    .capc-mobile-panel a:hover { color: var(--capc-green); text-decoration: none; }

    .capc-main, .psb-content-wrap {
        width: 100%;
        padding: 35px 20px 55px;
    }
    h1, .entry-content h1, .single-content h1, .wp-block-post-content h1 { font-size: 32px; }
    h2, .entry-content h2, .single-content h2, .wp-block-post-content h2 { font-size: 27px; }
    h3, .entry-content h3, .single-content h3, .wp-block-post-content h3 { font-size: 23px; }
    h4, .entry-content h4, .single-content h4, .wp-block-post-content h4 { font-size: 20px; }

    .capc-footer { padding: 40px 24px 30px; }
    .capc-footer-main { width: 100%; display: block; }
    .capc-footer-main > div { margin-bottom: 42px; }
    .capc-footer-main > div:last-child { margin-bottom: 0; }
    .capc-footer-logo { width: 192px; padding: 10px 13px; }
    .capc-footer-brand > p { max-width: 360px; font-size: 16px; line-height: 1.5; }
    .capc-social a { width: 39px; height: 39px; }
    .capc-footer-col h3 { font-size: 13px; margin-bottom: 18px; }
    .capc-footer-col li, .capc-contact p { font-size: 15px; line-height: 1.5; margin-bottom: 13px; }
    .capc-footer-bottom { width: 100%; display: block; margin-top: 10px; padding: 22px 0; }
    .capc-footer-bottom > div { margin-top: 14px; flex-wrap: wrap; gap: 10px 18px; }
    .capc-footer-bottom a { font-size: 12px; }
    .capc-disclaimer { width: 100%; font-size: 11px; }
    .capc-mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100000;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 14px;
        background: #fff;
        box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    }
    .capc-mobile-cta a {
        height: 52px;
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--capc-navy);
        color: #fff !important;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none !important;
    }
    .capc-mobile-cta a:last-child { background: var(--capc-green); }
}

@media (max-width: 600px) {
    .capc-nav-inner { padding: 0 16px; }
    .capc-brand img { width: 145px; }
    .capc-main, .psb-content-wrap { padding: 30px 18px 45px; }
    .entry-content, .single-content, .wp-block-post-content { font-size: 16px; }
    .entry-content blockquote, .single-content blockquote, .wp-block-post-content blockquote { padding: 16px 18px; font-size: 17px; }
    .entry-content ul, .entry-content ol, .single-content ul, .single-content ol, .wp-block-post-content ul, .wp-block-post-content ol { padding-left: 23px; }
    .entry-content table, .single-content table, .wp-block-post-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 420px) {
    .capc-nav-inner { height: 68px; }
    .capc-site-header { height: 68px; }
    .capc-brand img { width: 130px; }
    .capc-mobile-panel { top: 68px; }
    .capc-mobile-cta a { font-size: 14px; }
}
