/*
Theme Name: Condo360 Audit
Theme URI: https://condo360audit.com
Author: Condo360 Audit
Description: Block theme for Condo360 Audit, the history report for homes. Includes ready-made page patterns for the home page and a sample report.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.4.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: condo360
*/

/* Full-bleed sections stack with no gaps */
.c360-main > .wp-block-post-content { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.c360-main { padding-left: 0 !important; padding-right: 0 !important; }
.c360-main > .wp-block-post-content > .alignfull,
.c360-main > .wp-block-post-content > * + .alignfull { margin-block-start: 0; margin-block-end: 0; }
.c360-section { padding-block: 96px; }
.c360-section.is-tight { padding-block: 48px; }
.c360-section.c360-hero { padding-top: 40px; padding-bottom: 72px; }
.c360-section.has-white-background-color { border-block: 1px solid var(--wp--preset--color--border); }
.c360-intro { max-width: 760px; margin-bottom: 40px; }
.c360-page-title { padding-block: 56px 8px; }

/* Text helpers */
.c360-byline { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--wp--preset--color--accent); margin: 0; }
.c360-eyebrow { font-family: var(--wp--preset--font-family--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin: 0; }
.has-ink-background-color .c360-eyebrow { color: #A9B4C6; }
.c360-lead { font-size: 19px; color: var(--wp--preset--color--muted); max-width: 620px; }
.c360-muted { color: var(--wp--preset--color--muted); }
.c360-small { font-size: 14px; }
.has-ink-background-color .c360-muted, .has-ink-background-color .c360-lead { color: #C9D1DD; }
.has-accent-background-color .c360-lead, .has-accent-background-color .c360-small { color: #E6ECF8; }
.has-ink-background-color a:not(.wp-element-button), .has-accent-background-color a:not(.wp-element-button) { color: #FFFFFF; }
.has-ink-background-color .c360-small { color: #C9D1DD; }

/* Header and footer */
.c360-header { border-bottom: 1px solid var(--wp--preset--color--border); padding-block: 14px; }
.c360-site-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 0; }
.c360-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.c360-nav { font-size: 15px; font-weight: 500; gap: 28px; }
.c360-nav a { color: var(--wp--preset--color--ink); text-decoration: none; }
.c360-nav-cta .wp-element-button { padding: 11px 18px; }
.c360-footer { padding-block: 48px; color: #A9B4C6; }
.c360-footer .c360-site-title a { color: #FFFFFF; }
.c360-footer-about { max-width: 520px; }
.c360-footer-links a { color: #D6DCE6; }

/* Hero */
.c360-hero-visual { position: relative; }
.c360-hero-photo { margin: 0; }
.c360-hero-photo img { width: 100%; height: auto; border-radius: 18px; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.c360-hero-visual .c360-report-card { position: relative; margin: -150px 0 0 auto; width: min(400px, 92%); box-shadow: 0 18px 40px rgba(15, 26, 42, .22); }
@media (max-width: 781px) { .c360-hero-visual .c360-report-card { margin: -60px auto 0; } }

/* Cards */
.c360-card-photo { margin: 0 0 6px !important; }
.c360-card-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; }
.c360-card { background: #FFFFFF; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 28px; }
.c360-card.is-dark { border-color: var(--wp--preset--color--ink); justify-content: center; }
.c360-card h3 { margin: 0; }
.c360-card > * + * { margin-block-start: 10px; }
.c360-big { font-size: 26px !important; }
.c360-stack > * + * { margin-block-start: 12px; }
.c360-grade-row { align-items: center; gap: 18px; padding: 18px 20px; }
.c360-grade-row p { margin: 0; }

/* Report card */
.c360-report-card { border-radius: 18px; padding: 28px; }
.c360-report-card p { margin: 0; }
.c360-report-card > * + * { margin-block-start: 14px; }
.c360-row { align-items: center; }
.c360-callout { background: #1B2840; border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #D6DCE6; }
.c360-callout strong { color: #FFFFFF; }

/* Grade badges */
.c360-grade { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 4px 8px; border-radius: 6px; font-weight: 700; margin: 0; text-align: center; flex: none; box-sizing: border-box; }
.c360-grade.is-large { width: 56px; height: 56px; font-size: 30px; border-radius: 12px; font-family: var(--wp--preset--font-family--heading); }
.c360-grade.is-xl { width: 88px; height: 88px; font-size: 46px; border-radius: 14px; font-family: var(--wp--preset--font-family--heading); }
.c360-grade.is-hero { width: 140px; height: 140px; font-size: 72px; border-radius: 20px; font-family: var(--wp--preset--font-family--heading); }
.c360-grade-a { background: #1F6B45; color: #FFFFFF; }
.c360-grade-b { background: #2E8B57; color: #FFFFFF; }
.c360-grade-c { background: #E8A317; color: #0F1A2A; }
.c360-grade-d { background: #F28A4B; color: #0F1A2A; }
.c360-grade-f { background: #B3261E; color: #FFFFFF; }

/* Tagline */
.c360-tagline { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.02em; margin: 0; flex: 1 1 560px; }
.c360-tagline-link { font-weight: 600; margin: 0; }

/* Comparison table */
.c360-cmp-wrap { max-width: 1000px; margin-inline: auto !important; }
.c360-cmp { background: #FFFFFF; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; overflow: hidden; }
.c360-cmp > * + * { margin-block-start: 0 !important; }
.c360-cmp-row { gap: 0 !important; border-top: 1px solid var(--wp--preset--color--border); align-items: stretch !important; }
.c360-cmp-row.is-head { border-top: 0; font-weight: 600; font-size: 15px; }
.c360-cmp-row p { margin: 0 !important; display: flex; align-items: center; }
.c360-cmp-label { flex: 1 1 auto; min-width: 0; padding: 16px 20px; font-weight: 500; }
.c360-cmp-col { flex: 0 0 clamp(96px, 18vw, 180px); justify-content: center; text-align: center; padding: 16px 10px; font-size: 15px; color: #5A6578; }
.c360-cmp-col.is-ours { background: var(--wp--preset--color--accent-soft); }
.c360-cmp-row.is-head .c360-cmp-col { color: var(--wp--preset--color--muted); }
.c360-cmp-row.is-head .c360-cmp-col.is-ours { background: var(--wp--preset--color--accent); color: #FFFFFF; }
.c360-yes { font-size: 0 !important; }
.c360-yes::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
@media (max-width: 600px) { .c360-cmp-label { padding: 14px 12px; font-size: 15px; } .c360-cmp-col { font-size: 13px; } }

/* Report book */
.c360-book { margin: 0; }
.c360-book img { width: 100%; max-width: 560px; height: auto; display: block; margin-inline: auto; }
.c360-toc { counter-reset: toc; list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--wp--preset--color--border); }
.c360-toc li { counter-increment: toc; display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--border); font-weight: 500; }
.c360-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--wp--preset--font-family--mono); font-size: 14px; color: var(--wp--preset--color--accent); padding-top: 3px; }

/* Preloaded app */
.c360-phone { margin: 0; }
.c360-phone img { width: 100%; max-width: 460px; height: auto; display: block; margin-inline: auto; }
.c360-checks { list-style: none; padding: 0; margin: 8px 0; }
.c360-checks li { position: relative; padding: 8px 0 8px 32px; font-weight: 500; }
.c360-checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--accent-soft); }
.c360-checks li::after { content: ""; position: absolute; left: 6px; top: 16px; width: 8px; height: 5px; border-left: 2px solid var(--wp--preset--color--accent); border-bottom: 2px solid var(--wp--preset--color--accent); transform: rotate(-45deg); }

/* Partner badge */
.c360-partner { display: inline-flex !important; width: fit-content; gap: 16px; align-items: center; padding: 10px 18px 10px 20px; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: #FFFFFF; }
.c360-partner-label { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.c360-partner-logo { margin: 0; }
.c360-partner-logo img { width: 110px; height: auto; display: block; }

/* Steps */
.c360-step { border-top: 2px solid var(--wp--preset--color--accent); padding-top: 24px; }
.c360-step > * { margin: 0; }
.c360-step > * + * { margin-block-start: 10px; }
.c360-step-num { font-family: var(--wp--preset--font-family--mono); font-size: 14px; color: #A9B4C6; }

/* Pricing */
.c360-price-card { padding: 32px; display: flex; flex-direction: column; }
.c360-price-card.is-featured { border: 2px solid var(--wp--preset--color--accent); }
.c360-price { font-family: var(--wp--preset--font-family--heading); font-size: 40px; font-weight: 700; margin: 8px 0; }
.c360-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent-dark); margin: 0 0 6px; }
.c360-buttons-full { margin-top: auto; padding-top: 12px; }
.c360-buttons-full .wp-block-button { width: 100%; }
.c360-buttons-full .wp-block-button__link { width: 100%; box-sizing: border-box; }
.is-style-outline > .wp-element-button { border: 1.5px solid currentColor; background: transparent; color: var(--wp--preset--color--ink); }
.is-style-outline > .wp-element-button:hover { background: var(--wp--preset--color--ink); color: #FFFFFF; }

/* FAQ */
.c360-faq .wp-block-details { border-top: 1px solid var(--wp--preset--color--border); padding: 22px 0; margin: 0; }
.c360-faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
.c360-faq summary { font-weight: 600; font-size: 19px; cursor: pointer; }
.c360-faq details p { color: var(--wp--preset--color--muted); margin-top: 10px; }

/* Contact form (styles WPForms, Contact Form 7 and most form plugins) */
.c360-form-card .c360-small, .c360-form-card .c360-muted { color: var(--wp--preset--color--muted) !important; }
.c360-form-card { border-radius: 18px; padding: 32px; }
.c360-form-card label { font-size: 14px; font-weight: 600; }
.c360-form-card input[type=text], .c360-form-card input[type=email], .c360-form-card input[type=tel], .c360-form-card select, .c360-form-card textarea {
  width: 100%; max-width: 100% !important; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1.5px solid #C5CBD4; border-radius: 10px; font: inherit; font-size: 16px; color: #0F1A2A; background: #FFFFFF; }
.c360-form-card button[type=submit], .c360-form-card input[type=submit] {
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 10px; background: #0F1A2A !important; color: #FFFFFF !important; font: inherit; font-weight: 600; cursor: pointer; }

/* Sample report */
.c360-report { border-radius: 18px; overflow: hidden; border: 1px solid var(--wp--preset--color--border); max-width: 900px; margin-inline: auto !important; }
.c360-report-head { padding: 24px 40px; }
.c360-report-head p { margin: 0; }
.c360-report-body { padding: 40px; }
.c360-report-body > * + * { margin-block-start: 28px; }
.c360-report-summary { gap: 32px; }
.c360-report-title { font-size: 32px !important; margin: 0; }
.c360-table { border: 1px solid var(--wp--preset--color--border); border-radius: 14px; overflow: hidden; }
.c360-table > * + * { margin-block-start: 0; }
.c360-table-row { gap: 20px; padding: 14px 20px; border-top: 1px solid var(--wp--preset--color--border); align-items: center; }
.c360-table-row.is-head { border-top: 0; background: var(--wp--preset--color--base); }
.c360-table-row p { margin: 0; }
.c360-th { font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.c360-table-row > :first-child { width: 190px; flex: none; }
.c360-table-row > :nth-child(2) { width: 52px; flex: none; }
.c360-table-row > :last-child { flex: 1; }
@media (max-width: 640px) { .c360-table-row { flex-wrap: wrap !important; } .c360-table-row > :last-child { flex-basis: 100%; } }
.c360-flag { border-radius: 14px; padding: 20px; font-size: 15px; }
.c360-flag ul { margin: 8px 0 0; padding-left: 18px; }
.c360-flag-title { margin: 0; }
.c360-flag.is-red { background: #FCEDEB; } .c360-flag.is-red .c360-flag-title { color: #8C1D17; }
.c360-flag.is-amber { background: #FDF4DF; } .c360-flag.is-amber .c360-flag-title { color: #7A5200; }
.c360-flag.is-green { background: #E6F2EA; } .c360-flag.is-green .c360-flag-title { color: #1F6B45; }
.c360-report-cta { margin-top: 40px !important; gap: 16px 24px; align-items: center; font-size: 19px; font-weight: 600; }
