/*
Theme Name: Clear Profit 365
Theme URI: https://clearprofit365.com
Author: Finish Line Media
Description: Custom standalone block theme for Clear Profit 365. Design tokens live in theme.json; this file holds only what theme.json cannot express.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cp365
*/

/* Layout resets: sections sit flush against each other */
.wp-site-blocks>*{margin-block-start:0}
.cp365-main>*,.wp-block-post-content>.alignfull{margin-block-start:0;margin-block-end:0}
.cp365-section{padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)}
.cp365-section--tight{padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)}

/* Dark bands (blue / navy backgrounds) */
.has-blue-background-color,.has-navy-background-color{color:#fff}
.has-blue-background-color :is(h1,h2,h3,h4,h5,h6),.has-navy-background-color :is(h1,h2,h3,h4,h5,h6){color:inherit}
.has-blue-background-color a:not(.wp-element-button),.has-navy-background-color a:not(.wp-element-button){color:#fff}
.has-blue-background-color .wp-block-button.is-style-outline .wp-block-button__link,.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link{color:#fff;border-color:#fff}

/* Buttons */
.wp-block-button__link{transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--blue);border:2px solid var(--wp--preset--color--blue);padding:.8rem 1.5rem}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--blue);color:#fff}
.has-blue-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--wp--preset--color--blue)}
.cp365-btn-small .wp-block-button__link{padding:.5rem 1.1rem;font-size:1rem}
.wp-block-button.is-style-outline.cp365-btn-small .wp-block-button__link{padding:calc(.5rem - 2px) calc(1.1rem - 2px);font-size:1rem}

/* Cards */
.cp365-card{display:flex;flex-direction:column;background:#fff;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--line);border-radius:8px;box-shadow:var(--wp--preset--shadow--card);padding:var(--wp--preset--spacing--40)}
.cp365-card :is(h1,h2,h3,h4,h5,h6),.has-blue-background-color .cp365-card :is(h1,h2,h3,h4,h5,h6),.has-navy-background-color .cp365-card :is(h1,h2,h3,h4,h5,h6){color:var(--wp--preset--color--blue)}
.has-blue-background-color .cp365-card a:not(.wp-element-button),.has-navy-background-color .cp365-card a:not(.wp-element-button){color:var(--wp--preset--color--blue)}
.cp365-card>.wp-block-buttons:last-child{margin-top:auto;padding-top:var(--wp--preset--spacing--30)}
.cp365-card--featured{border:2px solid var(--wp--preset--color--gold)}
.cp365-badge{align-self:flex-start;background:var(--wp--preset--color--gold);color:var(--wp--preset--color--navy);font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:4px 10px;border-radius:8px;margin:0}
.cp365-price{font-family:var(--wp--preset--font-family--heading);font-size:2.5rem;font-weight:600;line-height:1.1;color:var(--wp--preset--color--blue);margin-bottom:0}
.cp365-price+p{margin-top:4px}
.cp365-rounded img{border-radius:8px;box-shadow:var(--wp--preset--shadow--card)}

/* Checklist */
ul.cp365-checklist{list-style:none;padding-left:0}
ul.cp365-checklist li{position:relative;padding-left:2em;margin-bottom:.55em}
ul.cp365-checklist li::before{content:"✓";position:absolute;left:0;top:.2em;width:1.5em;height:1.5em;border-radius:50%;background:var(--wp--preset--color--gold);color:var(--wp--preset--color--navy);font-weight:700;font-size:.8em;display:flex;align-items:center;justify-content:center}

/* Steps and team badges */
.cp365-step-number,.cp365-initial{width:48px;height:48px;flex:0 0 48px;border-radius:50%;font-family:var(--wp--preset--font-family--heading);font-size:1.375rem;font-weight:600;line-height:1;display:flex;align-items:center;justify-content:center;margin:0}
.cp365-step-number{background:var(--wp--preset--color--blue);color:#fff}
.cp365-initial{background:var(--wp--preset--color--sky);color:var(--wp--preset--color--navy)}

/* Table */
.cp365-table table{width:100%;border:1px solid var(--wp--preset--color--line);border-radius:8px;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff}
.cp365-table thead{border-bottom:0}
.cp365-table th,.cp365-table td{border:0;border-bottom:1px solid var(--wp--preset--color--line);padding:14px 18px;text-align:left}
.cp365-table thead th{background:var(--wp--preset--color--blue);color:#fff;font-family:var(--wp--preset--font-family--heading);font-weight:500;border-bottom:0}
.cp365-table tbody tr:nth-child(even){background:var(--wp--preset--color--sky-tint)}
.cp365-table tbody tr:last-child td{border-bottom:0}
.cp365-table th:last-child,.cp365-table td:last-child{text-align:right;white-space:nowrap}

/* FAQ */
.cp365-faq>*+*{margin-block-start:12px}
.cp365-faq details{border:1px solid var(--wp--preset--color--line);border-radius:8px;background:#fff;padding:18px 22px}
.cp365-faq summary{font-family:var(--wp--preset--font-family--heading);font-weight:500;font-size:1.25rem;color:var(--wp--preset--color--blue);cursor:pointer}
.cp365-faq details[open] summary{margin-bottom:12px}

/* Testimonial */
.wp-block-quote.cp365-testimonial{background:#fff;border:1px solid var(--wp--preset--color--line);border-left:6px solid var(--wp--preset--color--gold);border-radius:8px;box-shadow:var(--wp--preset--shadow--card);padding:var(--wp--preset--spacing--40);margin-left:0;margin-right:0;font-size:var(--wp--preset--font-size--large)}
.wp-block-quote.cp365-testimonial cite{display:block;margin-top:16px;font-size:1rem;font-style:normal;font-weight:700;color:var(--wp--preset--color--blue)}

/* Logo row */
.cp365-logo-row .wp-block-image{margin:0}
.cp365-logo-row img{max-height:56px;width:auto}

/* Header */
.cp365-topbar{padding-top:6px;padding-bottom:6px;font-size:.9375rem}
.cp365-topbar p{margin:0}
.cp365-topbar a{text-decoration:none}
.cp365-topbar a:hover{text-decoration:underline}
.cp365-header{padding-top:12px;padding-bottom:12px;border-bottom:1px solid var(--wp--preset--color--line)}
.cp365-logo{margin:0}
.cp365-logo{flex:0 0 auto}
.cp365-logo img{height:88px;width:auto;max-width:none;display:block}
.cp365-footer .cp365-logo img{height:96px}
.cp365-header .wp-block-navigation{font-family:var(--wp--preset--font-family--heading);font-size:1.0625rem;font-weight:500}
.cp365-header .wp-block-navigation .wp-block-navigation-item__content{color:var(--wp--preset--color--ink);text-decoration:none}
.cp365-header .wp-block-navigation .wp-block-navigation-item__content:hover{color:var(--wp--preset--color--blue)}
.cp365-header .wp-block-navigation .wp-block-navigation__submenu-container{border:1px solid var(--wp--preset--color--line);border-radius:8px;box-shadow:var(--wp--preset--shadow--card);padding:8px 0;min-width:270px}

/* Title band, single post, post cards */
.cp365-title-band{padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)}
.cp365-title-band :is(h1,p){margin-top:0;margin-bottom:0}
.cp365-title-band p{margin-top:12px}
.cp365-main .cp365-title-band :is(h1,h2,p,.wp-block-post-title,.wp-block-query-title,.wp-block-term-description){color:#fff}
.cp365-single .wp-block-post-featured-image img{border-radius:8px}
.cp365-post-card{padding:0;overflow:hidden}
.cp365-post-card .wp-block-post-featured-image{margin:0}
.cp365-post-card>*:not(.wp-block-post-featured-image){margin-left:24px;margin-right:24px}
.cp365-post-card>*:first-child:not(.wp-block-post-featured-image){margin-top:24px}
.cp365-post-card>*:last-child{margin-bottom:24px}
.cp365-post-card .wp-block-post-title a{text-decoration:none}
.cp365-post-card .wp-block-post-date{color:var(--wp--preset--color--muted)}
.cp365-post-card .wp-block-post-featured-image img{width:100%;object-fit:cover}
.cp365-post-card .wp-block-post-excerpt__more-text{margin-bottom:0}
.cp365-post-card .wp-block-post-excerpt__more-link{font-weight:600}
.cp365-topic-nav{gap:10px}
@media (min-width:601px) and (max-width:960px){.cp365-post-grid .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Footer */
.cp365-footer{padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--50)}
.cp365-footer-heading{font-family:var(--wp--preset--font-family--heading);font-weight:500;font-size:1.1875rem;color:var(--wp--preset--color--blue);margin-bottom:12px}
ul.cp365-footer-links{list-style:none;padding:0;margin:0}
ul.cp365-footer-links li{margin-bottom:6px}
.cp365-footer a:not(.wp-element-button){color:var(--wp--preset--color--ink);text-decoration:none}
.cp365-footer a:not(.wp-element-button):hover{color:var(--wp--preset--color--blue);text-decoration:underline}
.cp365-footer-bottom{padding-top:14px;padding-bottom:14px;font-size:.9375rem}
.cp365-footer-bottom p{margin:0}
.cp365-footer-bottom,.cp365-footer-bottom p{color:#fff}
.cp365-footer-bottom a:not(.wp-element-button){color:#fff}

@media (max-width:600px){.cp365-topbar-right{display:none}.cp365-logo img{height:68px}.cp365-footer .cp365-logo img{height:96px}}
/* Spacing helpers added with the pattern library */
.cp365-section>*+.alignwide,.cp365-section>*+.cp365-faq,.cp365-section>*+.wp-block-table{margin-block-start:var(--wp--preset--spacing--50)}
.cp365-team-member p{margin:0}
.cp365-team-member{align-items:center}
.cp365-step>*+*{margin-block-start:16px}
.cp365-hero .wp-block-buttons{margin-top:var(--wp--preset--spacing--40)}
.cp365-cta-band .wp-block-buttons{margin-top:var(--wp--preset--spacing--40)}
.wp-block-columns{gap:var(--wp--preset--spacing--50)}
.cp365-footer .wp-block-columns{gap:var(--wp--preset--spacing--40)}
.wp-block-search__input{border:1px solid var(--wp--preset--color--line);border-radius:8px;padding:.7rem 1rem;font-size:1rem}
.wp-block-query-pagination a,.wp-block-query-pagination .current{padding:6px 12px;border-radius:8px;text-decoration:none}
.wp-block-query-pagination .current{background:var(--wp--preset--color--blue);color:#fff}
/* Cleanup round: balanced grids, linked card headings, hero badge */
.wp-block-group.cp365-grid-center{--cp365-cols:3;--cp365-gap:var(--wp--preset--spacing--30);display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:var(--cp365-gap)}
.wp-block-group.cp365-grid-center>*{flex:0 1 calc((100% - (var(--cp365-cols) - 1)*var(--cp365-gap))/var(--cp365-cols) - .5px);max-width:100%;min-width:0;margin:0;box-sizing:border-box}
.wp-block-group.cp365-grid-center.cp365-cols-2{--cp365-cols:2}
.wp-block-group.cp365-grid-center.cp365-cols-4{--cp365-cols:4}
.wp-block-group.cp365-grid-center.cp365-cols-5{--cp365-cols:5}
@media (max-width:1100px){.wp-block-group.cp365-grid-center.cp365-cols-5{--cp365-cols:3}}
@media (max-width:960px){.wp-block-group.cp365-grid-center,.wp-block-group.cp365-grid-center.cp365-cols-4,.wp-block-group.cp365-grid-center.cp365-cols-5{--cp365-cols:2}}
@media (max-width:600px){.wp-block-group.cp365-grid-center[class]{--cp365-cols:1}}
.cp365-card :is(h2,h3,h4,h5,h6) a,.cp365-step :is(h2,h3,h4,h5,h6) a{color:inherit;text-decoration:none}
.cp365-card :is(h2,h3,h4,h5,h6) a:is(:hover,:focus-visible),.cp365-step :is(h2,h3,h4,h5,h6) a:is(:hover,:focus-visible),.cp365-post-card .wp-block-post-title a:is(:hover,:focus-visible){text-decoration:underline}
.cp365-hero .cp365-badge{width:fit-content;max-width:100%;padding:6px 16px;border-radius:999px;line-height:1.3}
.has-blue-background-color .cp365-card .wp-block-button.is-style-outline .wp-block-button__link,.has-navy-background-color .cp365-card .wp-block-button.is-style-outline .wp-block-button__link{color:var(--wp--preset--color--blue);border-color:var(--wp--preset--color--blue)}
.has-blue-background-color .cp365-card .wp-block-button.is-style-outline .wp-block-button__link:hover,.has-navy-background-color .cp365-card .wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--blue);color:#fff}
.cp365-logo-row--software{gap:var(--wp--preset--spacing--30)}
.cp365-logo-row--software .wp-block-image{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:150px;height:84px;padding:6px 10px;background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:8px}
.cp365-logo-row--software .wp-block-image img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.cp365-table--returns :is(th,td):nth-child(n+2){white-space:nowrap}
.cp365-table--plans :is(th,td):nth-child(-n+3){white-space:nowrap}
.cp365-table--plans :is(th,td):last-child{white-space:normal;text-align:left}

/* QA pass (Nov 2026): the palette slug "text" makes core's .has-text-color marker force the body colour; restore the chosen preset colour */
.has-white-color.has-text-color{color:var(--wp--preset--color--white)!important}
.has-blue-color.has-text-color{color:var(--wp--preset--color--blue)!important}
.has-navy-color.has-text-color{color:var(--wp--preset--color--navy)!important}
.has-gold-color.has-text-color{color:var(--wp--preset--color--gold)!important}
.has-sky-color.has-text-color{color:var(--wp--preset--color--sky)!important}
.has-sky-tint-color.has-text-color{color:var(--wp--preset--color--sky-tint)!important}
.has-neutral-color.has-text-color{color:var(--wp--preset--color--neutral)!important}
.has-muted-color.has-text-color{color:var(--wp--preset--color--muted)!important}
.has-line-color.has-text-color{color:var(--wp--preset--color--line)!important}
/* QA pass: tables scroll inside their wrapper on small screens; comparison tables centre their value columns */
.cp365-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
.cp365-table--compare :is(th,td):nth-child(n+2){text-align:center;white-space:nowrap}
@media (max-width:600px){.cp365-table th,.cp365-table td{padding:10px 12px;font-size:.9375rem}.cp365-table--plans table{min-width:540px}}
/* QA pass: team members in a centred grid sit in cards */
.wp-block-group.cp365-grid-center>.cp365-team-member{align-items:flex-start;background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:8px;padding:20px 22px}
/* QA pass: linked section headings keep the heading colour */
.cp365-section :is(h2,h3)>a{color:inherit;text-decoration:none}
.cp365-section :is(h2,h3)>a:is(:hover,:focus-visible){text-decoration:underline}
/* QA pass: header collapses to the menu button up to 960px; top-bar portal link hidden there (it is in the menu and footer) */
@media (min-width:600px) and (max-width:960px){.cp365-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex}.cp365-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none}}
@media (max-width:960px){.cp365-topbar-right{display:none}}
.cp365-header .wp-block-navigation .is-menu-open .wp-block-navigation__submenu-container{box-shadow:none;border-radius:0}
