/*
Theme Name: Affordable Housing Depot
Theme URI: https://renuhomesdevelopment.com/
Author: Affordable Housing Depot
Description: Website theme for Affordable Housing Depot: helping LIHTC renters become homeowners and helping nonprofit owners convert rentals to ownership. Includes a Communities section for listing available homes.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ahd
*/

:root{--ahd-navy:#0f1a2e;--ahd-blue:#2341e0;--ahd-yellow:#ffcf3d;--ahd-sky:#e9eeff;--ahd-paper:#f6f7fb;--ahd-muted:#46536b;--ahd-line:#dde2ee}

/* ---------- Base ---------- */
a:focus-visible,button:focus-visible,summary:focus-visible,.wp-element-button:focus-visible{outline:3px solid var(--ahd-yellow);outline-offset:3px}
.wp-site-blocks{padding-top:0;padding-bottom:0}
.wp-site-blocks > *{margin-block-start:0}
.wp-block-post-content > .alignfull{margin-block-start:0 !important;margin-block-end:0 !important}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--ahd-navy);border:2px solid var(--ahd-navy);padding:12px 22px}
.ahd-muted{color:var(--ahd-muted)}
.ahd-lead{font-size:1.15rem;color:var(--ahd-muted);max-width:42em}
.ahd-small{font-size:14px;color:var(--ahd-muted)}
.ahd-eyebrow{font-weight:700;color:var(--ahd-blue);font-size:15px;margin-bottom:0}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto !important}}

/* ---------- Header ---------- */
.ahd-topbar{background:var(--ahd-navy);color:#eef1f8;font-size:14px;padding-top:8px;padding-bottom:8px}
.ahd-topbar p{margin:0}
.ahd-topbar a{color:#eef1f8;text-decoration:none}
.ahd-topbar strong a,.ahd-topbar a strong{color:var(--ahd-yellow)}
.ahd-header{background:#fff;border-bottom:1px solid var(--ahd-line);padding-top:12px;padding-bottom:12px}
.ahd-header .wp-block-site-title{margin:0;font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:20px;letter-spacing:-.02em}
.ahd-header .wp-block-site-title a{color:var(--ahd-navy);text-decoration:none;display:inline-flex;align-items:center;gap:10px}
.ahd-header .wp-block-site-title a::before,.ahd-footer .wp-block-site-title a::before{content:"";width:34px;height:34px;flex:none;background:url("assets/ahd-logo-icon.svg") center/contain no-repeat}
.ahd-footer .wp-block-site-title a{display:inline-flex;align-items:center;gap:10px}
.ahd-footer .wp-block-site-title a::before{background-image:url("assets/ahd-logo-icon-white.svg")}
.ahd-header .wp-block-navigation{font-size:15px;font-weight:500;gap:6px 20px}
.ahd-header .wp-block-navigation a{color:var(--ahd-navy);padding:10px 0}
.ahd-header .wp-block-navigation a:hover,.ahd-header .wp-block-navigation .current-menu-item a{color:var(--ahd-blue);text-decoration:underline;text-underline-offset:6px}
.ahd-header .wp-block-button__link{padding:11px 20px;font-size:15px}

/* ---------- Bands ---------- */
.ahd-band{padding-top:76px;padding-bottom:76px}
.ahd-band--tight{padding-top:44px;padding-bottom:44px}
.ahd-band--white{background:#fff;border-top:1px solid var(--ahd-line);border-bottom:1px solid var(--ahd-line)}
.ahd-band--sky{background:var(--ahd-sky)}
.ahd-band--yellow{background:var(--ahd-yellow);color:var(--ahd-navy)}
.ahd-band--yellow .wp-block-button__link{background:var(--ahd-navy);color:#fff}
.ahd-band--navy{background:var(--ahd-navy);color:#eef1f8}
.ahd-band--navy h1,.ahd-band--navy h2,.ahd-band--navy h3{color:#fff}
.ahd-band--navy a:not(.wp-element-button){color:var(--ahd-yellow)}
.ahd-band--navy .wp-block-button__link{background:var(--ahd-yellow);color:var(--ahd-navy)}
.ahd-band--navy .is-style-outline .wp-block-button__link{background:transparent;color:#fff;border-color:#fff}
.ahd-band--navy .ahd-muted,.ahd-band--navy .ahd-small{color:#b7c1d6}

/* Page banner */
.ahd-banner{background:var(--ahd-sky);border-bottom:1px solid #d3dbf5;padding-top:56px;padding-bottom:60px}
.ahd-banner h1{margin:.2em 0 .3em}
.ahd-crumbs{font-size:14px;color:var(--ahd-muted);margin:0}

/* Hero */
.ahd-hero{background:#fff;padding-top:72px;padding-bottom:80px}
.ahd-hero h1{font-size:clamp(2.6rem,6vw,3.8rem);line-height:1.02;letter-spacing:-.03em}
.ahd-hero-media{position:relative}
.ahd-hero-badge{position:absolute;left:-20px;bottom:-28px;max-width:300px;background:var(--ahd-yellow);color:var(--ahd-navy);border-radius:12px;padding:18px 20px;font-weight:700;line-height:1.4;box-shadow:0 10px 30px rgba(15,26,46,.18);margin:0}

/* Photo placeholder */
.ahd-photo{min-height:340px;border-radius:16px;background:#e4e9f5;border:2px dashed #9aa6c2;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--ahd-muted);padding:24px}
.ahd-photo p{margin:0}
.wp-block-image.ahd-rounded img{border-radius:16px}

/* Cards */
.ahd-card{background:#fff;border:1px solid var(--ahd-line);border-radius:14px;padding:26px}
.ahd-card h3{margin-top:0}
.ahd-card p:last-child{margin-bottom:0}
.ahd-card--accent{border:2px solid var(--ahd-blue)}
.ahd-card--top-blue{border-top:6px solid var(--ahd-blue)}
.ahd-card--top-yellow{border-top:6px solid var(--ahd-yellow)}
.ahd-card--plain{background:var(--ahd-paper)}
.ahd-num{font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:2.4rem;line-height:1;color:var(--ahd-blue);margin:0}
.ahd-stat{font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:3rem;line-height:1;color:var(--ahd-yellow);margin:0 0 6px}
.ahd-stat--blue{color:var(--ahd-blue)}
.ahd-callout{background:var(--ahd-yellow);color:var(--ahd-navy);border-radius:12px;padding:18px 22px;font-weight:700}
.ahd-callout--sky{background:var(--ahd-sky);font-weight:400}
.ahd-timeline .wp-block-column{border-top:6px solid var(--ahd-blue);padding-top:16px}
.ahd-timeline .wp-block-column:first-child{border-top-color:#9aa6c2}
.ahd-timeline .wp-block-column:last-child{border-top-color:var(--ahd-yellow)}
.ahd-steps{display:flex;flex-direction:column;gap:16px}
.ahd-step{background:#fff;border:1px solid var(--ahd-line);border-radius:14px;padding:26px 28px 26px 100px;position:relative;counter-increment:ahdstep}
.ahd-steps{counter-reset:ahdstep}
.ahd-step::before{content:counter(ahdstep);position:absolute;left:28px;top:26px;width:52px;height:52px;border-radius:50%;background:var(--ahd-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:1.5rem}
.ahd-step:last-child::before{background:var(--ahd-yellow);color:var(--ahd-navy)}
.ahd-step h2,.ahd-step h3{margin:0 0 6px;font-size:1.4rem}
.ahd-step p{margin:0 0 8px;color:var(--ahd-muted)}
@media (max-width:600px){.ahd-step{padding:84px 22px 22px}.ahd-step::before{left:22px;top:20px}}
.ahd-check p{padding-left:34px;position:relative;margin:0 0 12px}
.ahd-check p::before{content:"";position:absolute;left:0;top:3px;width:22px;height:22px;background:var(--ahd-blue);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat}
.wp-block-table table{background:#fff;border-collapse:collapse;width:100%}
.wp-block-table th,.wp-block-table td{border:1px solid var(--ahd-line);padding:10px 14px;text-align:left}
.wp-block-table thead{background:var(--ahd-paper);border-bottom:0}

/* FAQ */
.wp-block-details.ahd-faq{background:#fff;border:1px solid var(--ahd-line);border-radius:12px;padding:16px 22px}
.wp-block-details.ahd-faq summary{cursor:pointer;font-weight:700;font-size:1.08rem}
.wp-block-details.ahd-faq p{color:var(--ahd-muted);margin:.7em 0 0}
.ahd-narrow{max-width:860px;margin-left:auto !important;margin-right:auto !important}

/* Office hours */
.ahd-days{display:flex;gap:10px}
.ahd-days p{flex:1;background:#1c2b4d;border-radius:10px;padding:12px 6px;text-align:center;font-weight:700;color:var(--ahd-yellow);margin:0}

/* Questionnaire */
.ahd-form{width:100%;height:1100px;border:1px solid var(--ahd-line);border-radius:12px;background:#fff}

/* ---------- Communities ---------- */
.ahd-communities{display:flex;flex-direction:column;gap:28px}
.ahd-community{background:#fff;border:1px solid var(--ahd-line);border-radius:16px;overflow:hidden;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.ahd-community__media{min-height:320px;background:#e4e9f5;display:flex;align-items:center;justify-content:center;color:var(--ahd-muted);text-align:center;padding:24px}
.ahd-community__media img{width:100%;height:100%;object-fit:cover;display:block}
.ahd-community__media--img{padding:0}
.ahd-community__body{padding:34px;display:flex;flex-direction:column;gap:14px}
.ahd-community__body h2{margin:0;font-size:2.1rem}
.ahd-community__body h2 a{color:var(--ahd-navy);text-decoration:none}
.ahd-community__place{margin:0;font-size:1.15rem;color:var(--ahd-muted)}
.ahd-community__body p{margin:0}
.ahd-community--soon{background:transparent;border:2px dashed #9aa6c2}
.ahd-tags{display:flex;flex-wrap:wrap;gap:8px}
.ahd-tag{background:var(--ahd-sky);color:#1b2f99;font-weight:700;font-size:14px;padding:5px 12px;border-radius:999px}
.ahd-tag--available{background:var(--ahd-yellow);color:var(--ahd-navy)}
.ahd-tag--soon{background:#e4e9f5;color:#2f3b52}
.ahd-tag--sold{background:#e4e9f5;color:#2f3b52}
.ahd-facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
.ahd-facts dt{font-size:14px;color:var(--ahd-muted)}
.ahd-facts dd{margin:0;font-weight:700}
.ahd-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}
.ahd-actions .ahd-btn{display:inline-block;background:var(--ahd-blue);color:#fff;text-decoration:none;font-weight:700;padding:14px 24px;border-radius:8px}
.ahd-actions .ahd-btn--outline{background:#fff;color:var(--ahd-navy);border:2px solid var(--ahd-navy);padding:12px 22px}
.ahd-empty{background:#fff;border:1px solid var(--ahd-line);border-radius:14px;padding:28px}
@media (max-width:820px){.ahd-community{grid-template-columns:minmax(0,1fr)}.ahd-community__media{min-height:220px}.ahd-facts{grid-template-columns:minmax(0,1fr)}}

/* ---------- Footer ---------- */
.ahd-footer{background:var(--ahd-navy);color:#c9d1e3;font-size:15px;padding-top:56px;padding-bottom:28px}
.ahd-footer a{color:#c9d1e3}
.ahd-footer .ahd-footer__contact a{color:var(--ahd-yellow)}
.ahd-footer h2,.ahd-footer h3,.ahd-footer .wp-block-site-title{color:#fff;font-size:1.15rem;margin:0 0 10px}
.ahd-footer .wp-block-site-title a{color:#fff;text-decoration:none}
.ahd-footer p{margin:0 0 6px}
.ahd-footer__bottom{border-top:1px solid #2a3a5c;margin-top:36px !important;padding-top:18px}
