/*
Theme Name: Residential Real Estate — Scott Green
Theme URI: https://scottagreen.com
Description: Child theme of Residential Real Estate (Themes Carts) carrying Scott Green Real Estate Group's brand palette and section styles. Content lives in WordPress pages as native blocks — this file is chrome only.
Author: AgentSpotlight.ai
Template: residential-real-estate
Version: 1.0.7
License: GNU General Public License v2 or later
Text Domain: residential-real-estate-scottgreen
*/

/* ---------- brand tokens ---------- */
:root {
  --sg-green: #163032; --sg-ivory: #F6F2E8; --sg-charcoal: #2D2D2D; --sg-gold: #B79A5D; --sg-white: #FFFFFF;
  --sg-radius: 18px; --sg-shadow: 0 12px 34px rgba(22, 48, 50, .10);
}
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { color: var(--sg-charcoal); }
::selection { background: var(--sg-gold); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--sg-ivory); }
::-webkit-scrollbar-thumb { background: var(--sg-green); border-radius: 10px; }

/* ---------- header (theme pill, brand colours) ---------- */
.header-wrap, .home .header-wrap { position: fixed !important; top: 0; left: 0; right: 0; width: 100%; z-index: 100; padding-top: 18px; pointer-events: none; }
.header-wrap > * { pointer-events: auto; }
.header-wrap.sg-scrolled .header-boxes { background: rgba(255,255,255,.96); }
.header-wrap .header-info { pointer-events: auto; }
.sg-hero, .sg-main, .sg-main > *:first-child { margin-top: 0 !important; }
.home .sg-hero { margin-top: -25px !important; }
.header-boxes { box-shadow: var(--sg-shadow); }
.sg-site-logo img { height: 40px; width: auto; max-width: none; }
.header-mid-box .wp-block-navigation { font-size: 14px; gap: 18px; }
.header-mid-box .wp-block-navigation__container { gap: 18px; }
.header-mid-box .wp-block-navigation-item__content:hover { color: var(--sg-gold); }
.sg-header-cta .wp-block-button__link { background: var(--sg-gold) !important; color: #fff !important; white-space: nowrap; }
.header-open-btn .wp-block-button__link { line-height: 1; }
.header-open-btn .dashicons { font-size: 22px; width: 22px; height: 22px; color: #fff; }
.header-info .sg-panel-logo img { max-width: 260px; height: auto; }
.header-close-btn .dashicons { font-size: 30px; width: 30px; height: 30px; color: #fff; }
.sg-info-icon .dashicons { font-size: 24px; width: 24px; height: 24px; color: var(--sg-gold); }
.header-info .wp-block-social-links { margin-top: 28px; }

/* ---------- hero slider ---------- */
.sg-hero .banner-wrap { min-height: 720px; }
.sg-hero .slider-head { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.sg-hero .sg-hero-sub { max-width: 560px; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.sg-hero .banner-review-box { background: rgba(22,48,50,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 18px 24px; gap: 22px; }
.sg-hero .banner-review-img-text .dashicons, .slider-section .banner-review-box .banner-review-img-text span.dashicons { color: var(--sg-gold) !important; font-size: 18px; width: 18px; height: 18px; vertical-align: -3px; }
.sg-btn-outline .wp-block-button__link { border: 2px solid rgba(255,255,255,.85) !important; color: #fff !important; }
.sg-btn-outline .wp-block-button__link:hover { background: #fff !important; color: var(--sg-green) !important; }
.sg-btn-gold .wp-block-button__link:hover { background: #a3874c !important; }
.owl-dots .owl-dot span { background: rgba(255,255,255,.6); }
.owl-dots .owl-dot.active span { background: var(--sg-gold); }

/* ---------- sections ---------- */
.sg-section { margin-top: 0 !important; margin-bottom: 0 !important; }
.sg-kicker { margin-bottom: 6px; }
.sg-title { margin-top: 0; }
.sg-subtitle { max-width: 720px; margin: 8px auto 36px; color: #5a5a5a; }
.sg-lead { color: #3a3a3a; }
.sg-card { box-shadow: var(--sg-shadow); height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.sg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(22,48,50,.16); }
.sg-card-row { gap: 28px; margin-top: 8px; }
.sg-card-row + .sg-card-row { margin-top: 28px; }
.sg-card-title { margin: 10px 0 8px; }
.sg-service-icon .dashicons { font-size: 34px; width: 34px; height: 34px; color: var(--sg-gold); }
.sg-service-icon { margin-bottom: 4px; }
.sg-stat-grid { gap: 20px; }
.sg-stat { background: #fff; border-radius: var(--sg-radius); padding: 26px 12px; box-shadow: var(--sg-shadow); height: 100%; }
.sg-stat-big { margin: 0; }
.sg-stat-label { color: #6a6a6a; }
.sg-chips { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.sg-chips li { background: var(--sg-ivory); color: var(--sg-green); border: 1px solid #e6dfd0; border-radius: 30px; padding: 7px 16px; font-size: 13px; font-weight: 500; }
.sg-chips li a { color: var(--sg-green); text-decoration: none; }
.sg-chips li:hover { border-color: var(--sg-gold); }
.sg-chips-center { justify-content: center; }
.sg-also { margin-top: 40px; color: #6a6a6a; }
.sg-about-photo img, .wp-block-image img { height: auto; }
.sg-community-card .property-head { gap: 8px; margin-bottom: 4px; }
.sg-arrow-btn .wp-block-button__link { padding: 8px 14px; font-size: 18px; line-height: 1; }
.property-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sg-offers .sg-offer-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); height: 100%; }
.sg-offers .sg-subtitle { color: rgba(255,255,255,.85); }
.sg-review-card { height: 100%; }
.sg-review-text { font-style: italic; color: #3a3a3a; }
.sg-stars { margin-bottom: 8px; }
.sg-blog-card { padding: 16px; box-shadow: var(--sg-shadow); height: 100%; }
.sg-blog-card .wp-block-post-featured-image img { border-radius: 14px; }
.sg-blog-card .wp-block-post-title { margin: 8px 0 6px; }
.sg-blog-card .wp-block-post-title a { text-decoration: none; }
.sg-blog-empty { color: #6a6a6a; padding: 24px; background: var(--sg-ivory); border-radius: var(--sg-radius); }
.sg-blog .wp-block-post-template, .sg-blog-archive .wp-block-post-template { gap: 28px; }
.sg-post-meta { gap: 16px; }
.sg-post .wp-block-post-content { font-size: 17px; line-height: 1.8; }
.sg-blog .wp-block-buttons { margin-top: 32px; }

/* FAQ (AI Boost accordion + community details) */
.agentspot-faq-section > .agentspot-container > h2 { display: none; }
.agentspot-faq-section .agentspot-container { max-width: 1200px !important; margin: 0 auto; padding: 0 !important; }
.agentspot-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agentspot-faq-card { background: #fff; border-radius: 14px; box-shadow: var(--sg-shadow); overflow: hidden; border: 1px solid #ece6d9; }
.agentspot-faq-q { margin: 0; font-size: inherit; line-height: inherit; font-family: Poppins, sans-serif !important; font-weight: 600; }
.agentspot-faq-question { width: 100%; text-align: left; background: none; border: 0; padding: 18px 52px 18px 22px; box-sizing: border-box; font: 600 15px/1.45 Poppins, sans-serif; color: var(--sg-green); cursor: pointer; position: relative; }
.agentspot-faq-question::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 24px; color: var(--sg-gold); }
.agentspot-faq-question[aria-expanded="true"]::after { content: "–"; }
.agentspot-faq-answer { display: none; padding: 0 22px 20px; color: #444; font-size: 14.5px; line-height: 1.7; }
.agentspot-faq-answer.agentspot-open { display: block; }
.sg-faq-item { background: #fff; border: 1px solid #ece6d9; border-radius: 14px; padding: 14px 20px; margin-bottom: 12px; box-shadow: var(--sg-shadow); }
.sg-faq-item summary { font-weight: 600; color: var(--sg-green); cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.sg-faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--sg-gold); }
.sg-faq-item[open] summary::after { content: "–"; }
.sg-faq-item p { margin: 10px 0 0; color: #444; font-size: 14.5px; line-height: 1.7; }

/* contact */
.sg-nap-line { margin: 6px 0; }
.sg-nap-line .dashicons { color: var(--sg-gold); vertical-align: -4px; margin-right: 6px; }
.sg-nap-card { margin: 18px 0; }
.sg-map { margin-top: 18px; }
.sg-form-card { box-shadow: var(--sg-shadow); }
.agentspot-contact-form-wrap label { font-size: 13px; font-weight: 600; color: var(--sg-green); margin-top: 10px; display: block; }
.agentspot-contact-form-wrap input, .agentspot-contact-form-wrap select, .agentspot-contact-form-wrap textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd6c6; border-radius: 10px; background: #fff; font-family: inherit; font-size: 15px; margin-top: 4px; }
.agentspot-contact-form-wrap textarea { min-height: 120px; }
.agentspot-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.agentspot-submit-btn, .agentspot-contact-form-wrap .agentspot-submit-btn { margin-top: 18px; width: 100%; background: var(--sg-green) !important; color: #fff !important; border: 0; border-radius: 30px; padding: 15px 24px; font: 600 15px Poppins, sans-serif; cursor: pointer; }
.agentspot-submit-btn:hover, .agentspot-contact-form-wrap .agentspot-submit-btn:hover { background: var(--sg-gold) !important; }
.agentspot-form-consent { display: none; }
.sg-consent { color: #777; margin-top: 14px; }
.sg-booking .wp-block-button__link { background: var(--sg-gold); }
.sg-idx iframe { border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); background: #fff; }

/* footer */
.sg-footer { color: #fff; }
.sg-footer .sg-footer-logo img { max-width: 300px; height: auto; }
.sg-footer h3 { font-size: 20px; margin-bottom: 14px; color: #fff; }
.sg-footer a { color: #fff; text-decoration: none; }
.sg-footer a:hover { color: var(--sg-gold); }
.sg-footer .sg-footer-line .dashicons { color: var(--sg-gold); vertical-align: -4px; margin-right: 4px; }
.sg-footer .sg-footer-cols { gap: 40px; }
.sg-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; }
.sg-footer-legal { color: rgba(255,255,255,.85) !important; text-align: center; }
.sg-footer-consent { font-size: 12px !important; color: rgba(255,255,255,.65) !important; max-width: 900px; margin: 10px auto; }
.sg-footer-credit { text-align: center; color: rgba(255,255,255,.75) !important; margin-top: 14px; }
.sg-footer .wp-block-social-link a { color: #fff; }

/* inner page banner */
.sg-inner-banner { min-height: 360px; padding-top: 150px !important; }
.sg-inner-banner h1 { text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.sg-page-lead { font-size: 30px; margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header-boxes .header-logo-box { flex-basis: 40% !important; }
  .header-boxes .header-mid-box { display: none; }
  .header-boxes .header-btn-box { flex-basis: 60% !important; }
}
@media (max-width: 781px) {
  .sg-hero .banner-wrap { min-height: 620px; }
  .sg-hero .slider-head { font-size: 32px !important; }
  .sg-hero .banner-right-box { margin-top: 20px; }
  .sg-stat-grid { display: grid !important; grid-template-columns: 1fr 1fr; }
  .sg-stat-grid .wp-block-column:last-child { grid-column: 1 / -1; }
  .sg-card-row { gap: 18px; }
  .agentspot-faq-grid { grid-template-columns: 1fr; }
  .agentspot-form-row { grid-template-columns: 1fr; }
  .sg-title { font-size: 30px !important; }
  .sg-section { padding-left: 20px !important; padding-right: 20px !important; }
  .header-btn-box .wp-block-button.sg-header-cta { display: none !important; }
  .sg-hero .owl-dots { display: none !important; }
  .home .sg-hero .banner-wrap { padding-top: 170px !important; }
  .sg-inner-banner { padding-top: 170px !important; }
  .header-boxes .header-logo-box { flex-basis: 70% !important; }
  .header-boxes .header-btn-box { flex-basis: 30% !important; }
  .sg-footer .sg-footer-cols { gap: 12px; }
}
