/* Certified Homes WordPress theme — shared layout, Elementor pages and editable property tools */
:root {
  --ch-gold: #c59a36;
  --ch-gold-deep: #8a6a24;
  --ch-gold-light: #ead9a4;
  --ch-charcoal: #23271f;
  --ch-ink: #23271f;
  --ch-cream: #f3f0ea;
  --ch-paper: #fffefa;
  --ch-muted: #70736b;
  --ch-line: #e4e0d5;
  --ch-serif: 'Merriweather', Georgia, serif;
  --ch-sans: 'Figtree', Arial, sans-serif;
  --ch-shadow: 0 16px 42px rgba(35,39,31,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ch-ink); background: var(--ch-paper); font-family: var(--ch-sans); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--ch-gold-deep); }
button, input, select, textarea { font: inherit; }
.ch-wrap { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.ch-page-content { min-height: 50vh; }
.ch-page-content > .elementor { overflow: clip; }
.ch-skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-160%); background: var(--ch-charcoal); color: #fff; }
.ch-skip-link:focus { transform: none; }
.ch-eyebrow { display: inline-block; color: var(--ch-gold-deep); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .17em; text-transform: uppercase; }
.ch-eyebrow-light { color: var(--ch-gold-light); }

/* Sticky brand header and desktop navigation */
.ch-site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,254,250,.97); border-bottom: 1px solid rgba(35,39,31,.1); box-shadow: 0 5px 20px rgba(35,39,31,.035); backdrop-filter: blur(12px); }
.admin-bar .ch-site-header { top: 32px; }
.ch-header-inner { width: min(1240px, calc(100% - 48px)); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 22px; }
.ch-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--ch-charcoal); text-decoration: none; }
.ch-brand-logo { display: block; width: 46px; height: 46px; object-fit: contain; }
.ch-brand-name { display: flex; flex-direction: column; line-height: 1; }
.ch-brand-name strong { font-family: var(--ch-serif); font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.ch-brand-name small { margin-top: 5px; color: #686960; font-size: 8px; letter-spacing: .2em; }
.ch-primary-nav { flex: 1 1 auto; min-width: 0; }
.ch-nav-list { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.4vw, 19px); margin: 0; padding: 0; list-style: none; }
.ch-nav-list li { margin: 0; padding: 0; }
.ch-nav-list a { position: relative; display: block; padding: 12px 0; color: #45483f; font-size: 11px; font-weight: 600; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.ch-nav-list a:after { position: absolute; right: 100%; bottom: 5px; left: 0; height: 2px; background: var(--ch-gold); content: ''; transition: right .2s ease; }
.ch-nav-list a:hover:after, .ch-nav-list .current-menu-item > a:after, .ch-nav-list .current_page_item > a:after { right: 0; }
.ch-nav-list .current-menu-item > a, .ch-nav-list .current_page_item > a { color: var(--ch-charcoal); }
.ch-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.ch-phone { display: flex; align-items: center; gap: 7px; color: #383b33; font-size: 11px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.ch-phone > span:first-child { color: var(--ch-gold-deep); font-size: 17px; }
.ch-phone small { display: block; margin-top: 4px; color: var(--ch-muted); font-size: 9px; font-weight: 400; }
.ch-whatsapp { display: inline-flex; align-items: center; gap: 5px; color: #42624b; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ch-menu-toggle { display: none; }

/* Buttons and interactive states */
.ch-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 1px solid transparent; border-radius: 2px; background: var(--ch-gold); color: #fff !important; cursor: pointer; font-family: var(--ch-sans); font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.ch-button:hover, .ch-button:focus-visible { transform: translateY(-1px); background: #aa8129; color: #fff !important; box-shadow: 0 7px 18px rgba(120,91,28,.18); }
.ch-button-small { min-height: 40px; padding: 10px 13px; font-size: 10px; white-space: nowrap; }
.ch-button-light { background: #fff; color: var(--ch-charcoal) !important; }
.ch-button-light:hover, .ch-button-light:focus-visible { background: var(--ch-cream); color: var(--ch-charcoal) !important; }
:focus-visible { outline: 3px solid rgba(197,154,54,.55); outline-offset: 3px; }

/* Footer lead area, FAQs and WordPress enquiry form */
.ch-footer-lead { padding: 78px 0; background: var(--ch-charcoal); color: #fff; }
.ch-footer-lead-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(32px, 5vw, 76px); }
.ch-faq h2 { margin: 13px 0 26px; color: #fff; font-family: var(--ch-serif); font-size: clamp(29px, 3.7vw, 44px); line-height: 1.2; }
.ch-faq h2 em { color: var(--ch-gold-light); font-weight: 400; }
.ch-faq details { border-top: 1px solid rgba(255,255,255,.18); }
.ch-faq details:last-of-type { border-bottom: 1px solid rgba(255,255,255,.18); }
.ch-faq summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 2px; color: #fff; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.ch-faq summary::-webkit-details-marker { display: none; }
.ch-faq summary:after { color: var(--ch-gold-light); content: '+'; font-size: 19px; font-weight: 400; }
.ch-faq details[open] summary:after { content: '−'; }
.ch-faq details p { margin: -3px 0 17px; color: rgba(255,255,255,.73); font-size: 12px; line-height: 1.75; }
.ch-faq-more { margin: 19px 0 0; color: rgba(255,255,255,.75); font-size: 12px; }
.ch-faq-more a { color: var(--ch-gold-light); font-weight: 700; text-decoration: none; }
.ch-footer-form-wrap { min-width: 0; }
.ch-lead-form { padding: 27px; background: #fff; color: var(--ch-charcoal); box-shadow: var(--ch-shadow); }
.ch-lead-form h3 { margin: 8px 0; font-family: var(--ch-serif); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; }
.ch-lead-form-intro { margin: 0 0 20px; color: var(--ch-muted); font-size: 12px; line-height: 1.65; }
.ch-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 14px; margin-bottom: 17px; }
.ch-lead-form label { display: grid; align-content: start; gap: 6px; color: #4d5048; font-size: 10px; font-weight: 700; line-height: 1.35; }
.ch-lead-form input, .ch-lead-form select, .ch-lead-form textarea { display: block; width: 100%; min-width: 0; min-height: 43px; padding: 10px 11px; border: 1px solid #dcd9d0; border-radius: 0; background: #fff; color: var(--ch-charcoal); font-family: var(--ch-sans); font-size: 12px; font-weight: 400; line-height: 1.45; }
.ch-lead-form textarea { min-height: 104px; resize: vertical; }
.ch-lead-form input:focus, .ch-lead-form select:focus, .ch-lead-form textarea:focus { border-color: var(--ch-gold); outline: 2px solid rgba(197,154,54,.18); }
.ch-field-wide { grid-column: 1 / -1; }
.ch-form-note { display: block; margin-top: 11px; color: var(--ch-muted); font-size: 9px; line-height: 1.6; }
.ch-form-success, .ch-form-error { margin: 0 0 16px; padding: 11px 13px; border-left: 3px solid #718b57; background: #f0f5ed; color: #34452c; font-size: 12px; }
.ch-form-error { border-color: #aa4a37; background: #fbefed; color: #6a2c21; }
.ch-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }

/* Gold callout and site footer */
.ch-footer-cta { padding: 49px 0; background: var(--ch-gold); color: #fff; }
.ch-footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ch-footer-cta h2 { max-width: 680px; margin: 10px 0 8px; color: #fff; font-family: var(--ch-serif); font-size: clamp(27px, 3.5vw, 38px); line-height: 1.2; }
.ch-footer-cta p { margin: 0; color: rgba(255,255,255,.9); font-size: 13px; }
.ch-footer-main { display: grid; grid-template-columns: 1.15fr .65fr 1.2fr; gap: clamp(28px, 5vw, 70px); padding-top: 48px; padding-bottom: 39px; }
.ch-site-footer { background: var(--ch-charcoal); color: #f5f2e9; }
.ch-footer-brand .ch-brand { color: #fff; }
.ch-footer-brand .ch-brand-name small { color: rgba(255,255,255,.65); }
.ch-footer-brand > p { max-width: 250px; color: rgba(255,255,255,.66); font-size: 11px; line-height: 1.7; }
.ch-footer-main h3 { margin: 0 0 16px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ch-footer-main > div:not(.ch-footer-brand):not(.ch-social-links) > a { display: block; margin: 9px 0; color: rgba(255,255,255,.75); font-size: 11px; text-decoration: none; }
.ch-footer-main > div > a:hover, .ch-footer-contact a:hover { color: var(--ch-gold-light); }
.ch-footer-contact p { margin: 0 0 10px; color: rgba(255,255,255,.84); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.ch-footer-contact p span { display: block; margin-bottom: 2px; color: rgba(255,255,255,.49); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ch-footer-contact a { color: inherit; text-decoration: none; }
.ch-social-links { display: flex; gap: 8px; margin-top: 17px; }
.ch-social { display: inline-flex; width: 31px; height: 31px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.ch-social:hover { border-color: var(--ch-gold-light); color: var(--ch-gold-light); }
.ch-social-placeholder { color: rgba(255,255,255,.65); }
.ch-footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 15px; padding-bottom: 16px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); font-size: 9px; }

/* Elementor canvas and WordPress content fallbacks */
.elementor-widget-text-editor, .entry-content, .ch-page-content { color: inherit; }
.entry-content > *:not(.alignwide):not(.alignfull) { max-width: 1180px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: 1280px; }
.entry-content > .alignfull { max-width: none; }
.entry-content img { height: auto; }
.ch-page-content .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1180px; }

/* Editable property catalogue cards */
.ch-catalogue { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 22px; }
.ch-property-card { min-width: 0; overflow: hidden; border: 1px solid var(--ch-line); background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.ch-property-card:hover { transform: translateY(-4px); box-shadow: var(--ch-shadow); }
.ch-property-photo { position: relative; aspect-ratio: 1.55 / 1; overflow: hidden; background: #e6e0d2; }
.ch-property-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ch-property-card:hover .ch-property-photo > img { transform: scale(1.035); }
.ch-property-type, .ch-property-illustrative { position: absolute; z-index: 1; }
.ch-property-type { top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 7px 9px; background: rgba(255,254,250,.94); color: #4b4d44; font-size: 9px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.ch-property-illustrative { right: 11px; bottom: 11px; padding: 5px 7px; background: rgba(35,39,31,.73); color: #fff; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.ch-property-content { padding: 19px; }
.ch-property-meta { margin: 0 0 7px; color: var(--ch-gold-deep); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ch-property-content h3 { min-height: 48px; margin: 0 0 13px; color: var(--ch-charcoal); font-family: var(--ch-serif); font-size: 19px; line-height: 1.35; }
.ch-property-prices { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ch-line); border-bottom: 1px solid var(--ch-line); }
.ch-property-prices > div, .ch-property-starting { display: flex; flex-direction: column; gap: 3px; }
.ch-property-prices span, .ch-property-starting span { color: var(--ch-muted); font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ch-property-prices strong, .ch-property-starting strong { color: var(--ch-gold-deep); font-size: 13px; }
.ch-property-starting { margin: 13px 0; }
.ch-property-content h4 { margin: 14px 0 7px; color: #55584f; font-size: 10px; font-weight: 700; }
.ch-property-features { display: grid; gap: 7px; margin: 10px 0; padding: 0; list-style: none; }
.ch-property-features li { position: relative; padding-left: 17px; color: #5c5e56; font-size: 10px; line-height: 1.55; }
.ch-property-features li:before { position: absolute; top: 0; left: 0; color: var(--ch-gold-deep); content: '✓'; font-size: 11px; font-weight: 700; }
.ch-property-suitable { margin: 12px 0; color: #686a61; font-size: 10px; line-height: 1.6; }
.ch-property-payment { margin: 14px 0; padding: 11px 12px; border-left: 2px solid var(--ch-gold); background: #f7f4ec; }
.ch-payment-label { display: block; margin-bottom: 4px; color: var(--ch-gold-deep); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ch-property-payment p { margin: 3px 0; color: #5e6058; font-size: 10px; line-height: 1.55; }
.ch-property-enquire { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ch-line); color: var(--ch-gold-deep); font-size: 10px; font-weight: 700; text-decoration: none; }
.ch-property-enquire:hover { color: var(--ch-charcoal); }
.ch-placeholder-note { margin: 18px 0; padding: 12px 15px; border-left: 3px solid var(--ch-gold); background: #f8f5ed; color: #686a62; font-size: 10px; line-height: 1.65; }
.ch-property-image-empty { width: 100%; height: 100%; min-height: 220px; background: linear-gradient(135deg,#e6e0d2,#d5cdbb); }

/* Search published listings and route no-match visitors into sourcing */
.ch-property-search { margin: 0 0 30px; }
.ch-property-search-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 12px; padding: 20px; border-top: 3px solid var(--ch-gold); background: #fff; box-shadow: 0 10px 26px rgba(35,39,31,.07); }
.ch-property-search-form label { display: grid; gap: 6px; color: #53554d; font-size: 10px; font-weight: 700; line-height: 1.35; }
.ch-property-search-form input, .ch-property-search-form select { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid #d9d7d0; border-radius: 0; background: #fff; color: var(--ch-charcoal); font-family: var(--ch-sans); font-size: 12px; }
.ch-property-search-form .ch-button { min-height: 46px; white-space: nowrap; }
.ch-property-search-results { margin-top: 36px; }
.ch-property-search-results > h2 { margin: 0 0 20px; font-family: var(--ch-serif); font-size: clamp(24px,3vw,34px); line-height: 1.25; }
.ch-search-empty { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 22px; margin-top: 32px; }
.ch-search-empty-copy { padding: 26px; background: var(--ch-charcoal); color: #fff; }
.ch-search-empty-copy h2 { margin: 9px 0; color: #fff; font-family: var(--ch-serif); font-size: 28px; line-height: 1.25; }
.ch-search-empty-copy p { margin: 0 0 20px; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.8; }
.ch-search-empty-copy .ch-button { color: var(--ch-charcoal) !important; }
.ch-search-source-form .ch-lead-form { padding: 23px; }

/* Responsive behavior */
@media (max-width: 1120px) {
  .ch-header-inner { gap: 15px; }
  .ch-nav-list { gap: 10px; }
  .ch-nav-list a { font-size: 10px; }
  .ch-phone { display: none; }
  .ch-catalogue { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .admin-bar .ch-site-header { top: 46px; }
  .ch-header-inner { width: calc(100% - 34px); min-height: 72px; justify-content: space-between; }
  .ch-menu-toggle { display: inline-flex; width: 42px; height: 42px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; order: 3; border: 1px solid var(--ch-line); background: transparent; color: var(--ch-charcoal); cursor: pointer; }
  .ch-menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .18s ease; }
  .ch-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .ch-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .ch-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .ch-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px 20px 18px; border-bottom: 1px solid var(--ch-line); background: #fffefa; box-shadow: 0 15px 25px rgba(35,39,31,.09); }
  .ch-primary-nav.is-open { display: block; }
  .ch-nav-list { display: grid; gap: 0; }
  .ch-nav-list li { border-bottom: 1px solid #eeeae1; }
  .ch-nav-list a { padding: 13px 2px; font-size: 13px; }
  .ch-nav-list a:after { display: none; }
  .ch-header-actions { margin-left: auto; }
  .ch-whatsapp { display: none; }
  .ch-footer-lead-grid { grid-template-columns: 1fr; }
  .ch-footer-main { grid-template-columns: 1fr 1fr; }
  .ch-footer-brand { grid-column: 1 / -1; }
  .ch-footer-cta-inner { align-items: flex-start; }
  .ch-search-empty { grid-template-columns: 1fr; }
  .ch-property-search-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ch-wrap { width: calc(100% - 34px); }
  .ch-header-inner { width: calc(100% - 26px); min-height: 66px; gap: 8px; }
  .ch-brand-logo { width: 39px; height: 39px; }
  .ch-brand-name strong { font-size: 15px; }
  .ch-brand-name small { font-size: 7px; }
  .ch-header-actions .ch-button { display: none; }
  .ch-menu-toggle { width: 40px; height: 40px; }
  .ch-footer-lead { padding: 55px 0; }
  .ch-lead-form { padding: 20px 16px; }
  .ch-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .ch-field-wide { grid-column: auto; }
  .ch-footer-cta { padding: 38px 0; }
  .ch-footer-cta-inner { flex-direction: column; align-items: flex-start; gap: 19px; }
  .ch-footer-cta .ch-button { width: 100%; }
  .ch-footer-main { grid-template-columns: 1fr; gap: 25px; padding-top: 35px; }
  .ch-footer-brand { grid-column: auto; }
  .ch-footer-bottom { flex-direction: column; gap: 5px; }
  .ch-catalogue { grid-template-columns: 1fr; gap: 17px; }
  .ch-property-photo { aspect-ratio: 1.55 / 1; }
  .ch-property-content { padding: 16px; }
  .ch-property-content h3 { min-height: 0; }
  .ch-property-search-form { grid-template-columns: 1fr; padding: 16px; }
  .ch-property-search-form .ch-button { width: 100%; }
  .ch-search-empty-copy { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
