/*
Theme Name: Child Hello Elementor
Template: hello-elementor
Version: 3.5.0
*/

/* NS Realtors: consistent global rhythm */
:root{--nsr-green:#61a512;--nsr-green-dark:#397708;--nsr-text:#151515;--nsr-muted:#5f685b;--nsr-border:#e1eadc;--nsr-soft:#f5f8f2;--nsr-radius:18px}
html{scroll-behavior:smooth}
body{color:var(--nsr-text);overflow-x:hidden}
.elementor-section.elementor-section-boxed>.elementor-container,.e-con.e-con-boxed>.e-con-inner{max-width:1180px}
.elementor-widget-text-editor p:last-child{margin-bottom:0}
.elementor img{max-width:100%;height:auto}
.elementor-button{font-weight:600;letter-spacing:.01em}
.elementor-widget-heading h1,.elementor-widget-heading h2,.elementor-widget-heading h3{letter-spacing:-.025em}
.wpcf7 form{margin:0}
.wpcf7 input:not([type=submit]),.wpcf7 textarea,.wpcf7 select{width:100%;min-height:50px;border:1px solid #d8e3d2;border-radius:9px;background:#fff;padding:12px 14px;color:var(--nsr-text)}
.wpcf7 textarea{min-height:130px;resize:vertical}
.wpcf7 input[type=submit]{border:0;border-radius:9px;background:var(--nsr-green);color:#fff;font-weight:700;padding:14px 26px;cursor:pointer}
.wpcf7 input[type=submit]:hover{background:var(--nsr-green-dark)}
.wpcf7 form p{margin:0 0 14px}

/* Dynamic single post and project templates */
body.single-post main.site-main,body.single-project main.site-main{max-width:1180px;margin:0 auto;padding:64px 24px 80px}
body.single-post main article,body.single-project main article{max-width:930px;margin:0 auto;background:#fff;border:1px solid var(--nsr-border);border-radius:22px;padding:clamp(26px,5vw,58px);box-shadow:0 18px 45px rgba(20,45,14,.08)}
body.single-post .entry-title,body.single-project .entry-title{font-size:clamp(36px,5vw,64px);line-height:1.08;letter-spacing:-.04em;margin:0 0 22px;color:#111}
body.single-post .entry-meta,body.single-project .entry-meta{color:var(--nsr-green);font-weight:700;margin:0 0 26px}
body.single-post .entry-content,body.single-project .entry-content{font-size:18px;line-height:1.75;color:#465043}
body.single-post .entry-content h2,body.single-project .entry-content h2{font-size:clamp(27px,3vw,38px);line-height:1.2;color:#111;margin:1.3em 0 .55em}
body.single-post .entry-content h3,body.single-project .entry-content h3{font-size:24px;line-height:1.3;color:#111;margin:1.2em 0 .5em}
body.single-post .entry-content p,body.single-project .entry-content p{margin:0 0 1.05em}
body.single-post .entry-content img,body.single-project .entry-content img{width:100%;height:auto;border-radius:16px;margin:10px 0 24px}
body.single-post .post-tags,body.single-project .post-tags{margin-top:28px}
body.single-project .entry-content:empty:after{content:"Project details, specifications and availability are available on request. Contact our team for the latest information.";display:block;background:var(--nsr-soft);border-left:4px solid var(--nsr-green);padding:22px;border-radius:10px;color:var(--nsr-muted)}

/* Native archive fallback */
body.archive main.site-main{max-width:1180px;margin:0 auto;padding:60px 24px 80px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.archive .page-header{grid-column:1/-1}
body.archive .page-title{font-size:clamp(38px,5vw,60px);line-height:1.1;margin:0 0 18px}
body.archive article{background:#fff;border:1px solid var(--nsr-border);border-radius:16px;padding:24px;box-shadow:0 10px 28px rgba(20,45,14,.07)}
body.archive article h2{font-size:24px;line-height:1.25;margin:12px 0}
body.archive article a{color:#111;text-decoration:none}
body.archive article a:hover{color:var(--nsr-green)}

/* Cards, tabs, and images */
.nsr-project-card,.nsr-news-card{height:100%;display:flex;flex-direction:column}
.nsr-project-content,.nsr-news-content{display:flex;flex:1;flex-direction:column}
.nsr-project-content .nsr-project-link,.nsr-news-content .nsr-news-link{margin-top:auto}
.nsr-project-tabs button{transition:background-color .2s,color .2s,transform .2s}
.nsr-project-tabs button:hover{transform:translateY(-1px)}
.nsr-project-image img,.nsr-news-image img{display:block}
.elementor-widget-image img{object-fit:cover}

/* Tablet */
@media(max-width:1024px){
 .elementor-section.elementor-section-boxed>.elementor-container,.e-con.e-con-boxed>.e-con-inner{max-width:100%}
 body.single-post main.site-main,body.single-project main.site-main{padding:48px 22px 68px}
 body.archive main.site-main{grid-template-columns:repeat(2,minmax(0,1fr));padding:48px 22px 68px}
 .elementor-widget-heading h1{font-size:clamp(38px,6vw,56px)}
}

/* Mobile */
@media(max-width:767px){
 body.single-post main.site-main,body.single-project main.site-main{padding:34px 15px 52px}
 body.single-post main article,body.single-project main article{padding:24px 18px;border-radius:16px}
 body.single-post .entry-title,body.single-project .entry-title{font-size:34px}
 body.single-post .entry-content,body.single-project .entry-content{font-size:16px;line-height:1.7}
 body.archive main.site-main{grid-template-columns:1fr;padding:34px 15px 52px}
 .elementor-element{max-width:100%}
 .elementor-widget-heading h1{font-size:clamp(34px,10vw,46px);line-height:1.08}
 .elementor-widget-heading h2{font-size:clamp(28px,8vw,38px);line-height:1.15}
 .elementor-button{width:auto;min-height:46px;display:inline-flex;align-items:center;justify-content:center}
 .wpcf7 input:not([type=submit]),.wpcf7 textarea,.wpcf7 select{font-size:16px}
 table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

.nsr-single-project-category{display:inline-flex;margin:0 0 20px;border-radius:999px;background:#eef6e8;color:var(--nsr-green-dark);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:9px 14px}
.nsr-single-project-image{width:100%;max-height:520px;object-fit:cover;border-radius:16px;margin:0 0 28px}
.nsr-single-project-copy{margin-bottom:34px}
.nsr-single-project-cta{margin-top:38px;border-radius:16px;background:linear-gradient(135deg,#17390a,#61a512);color:#fff;padding:clamp(24px,4vw,38px)}
.nsr-single-project-cta h2{color:#fff!important;margin:0 0 8px!important;font-size:clamp(26px,3vw,36px)!important}
.nsr-single-project-cta p{color:rgba(255,255,255,.9);margin:0 0 20px!important}
.nsr-single-project-cta a{display:inline-flex;border-radius:9px;background:#fff;color:#397708!important;text-decoration:none;font-weight:800;padding:13px 20px}


add_action( 'loop_end', 'nsr_project_loop_cta' );
function nsr_project_loop_cta( $query ) {
    if ( ! is_singular( 'project' ) || ! $query->is_main_query() ) return;
    echo '<section class="nsr-project-after-content"><h2>Interested in this project?</h2><p>Get current specifications, pricing, availability and site-visit support from our property advisory team.</p><a href="' . esc_url( home_url( '/contact-us/' ) ) . '">Request Project Details →</a></section>';
}

.nsr-project-after-content{max-width:930px;margin:0 auto 64px;border-radius:18px;background:linear-gradient(135deg,#17390a,#61a512);color:#fff;padding:clamp(26px,5vw,48px);text-align:center}
.nsr-project-after-content h2{color:#fff;font-size:clamp(28px,4vw,42px);margin:0 0 10px}
.nsr-project-after-content p{max-width:660px;margin:0 auto 22px;color:rgba(255,255,255,.9);font-size:17px;line-height:1.65}
.nsr-project-after-content a{display:inline-flex;border-radius:9px;background:#fff;color:#397708;text-decoration:none;font-weight:800;padding:13px 20px}
.elementor-icon-list-items.elementor-inline-items{max-width:100%;flex-wrap:wrap!important}
.elementor-element-827a684,.elementor-element-2f3807d{width:100%!important;max-width:100%!important;box-sizing:border-box}
@media(max-width:767px){.elementor-icon-list-items.elementor-inline-items{width:100%!important;margin-left:0!important;margin-right:0!important}.nsr-project-after-content{margin:0 15px 48px;padding:26px 18px}}


/* Contact page refinement */
body.page-id-46 .entry-title{text-align:center;margin:28px auto 46px;font-size:clamp(40px,5vw,62px);letter-spacing:-.04em}
body.page-id-46 .elementor-element-b4185c1{text-align:center;max-width:1050px!important;margin:0 auto 38px!important;padding:0 24px}
body.page-id-46 .elementor-element-b4185c1 h2{line-height:1.12!important;margin-bottom:18px}
.nsr-contact-points{max-width:1180px;margin:0 auto 42px;padding:0 24px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.nsr-contact-points article{background:#fff;border:1px solid var(--nsr-border);border-radius:16px;padding:24px 20px;box-shadow:0 10px 26px rgba(20,45,14,.06);transition:.25s}
.nsr-contact-points article:hover{transform:translateY(-4px);border-color:#a9cc8b}
.nsr-contact-points span{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#edf6e6;color:var(--nsr-green-dark);font-weight:800}
.nsr-contact-points h3{font-size:19px;line-height:1.25;margin:16px 0 8px}
.nsr-contact-points p{font-size:15px;line-height:1.6;color:var(--nsr-muted);margin:0}

/* Career page rebuilt as aligned cards */
body.page-id-48 .entry-title{text-align:center;margin:28px auto 42px;font-size:clamp(40px,5vw,62px);letter-spacing:-.04em}
.nsr-career-redesign{max-width:1180px;margin:0 auto 70px;padding:62px 24px;border-radius:24px;background:linear-gradient(180deg,#f4f8f1,#fff)}
.nsr-section-intro{text-align:center;max-width:820px;margin:0 auto 42px}
.nsr-section-intro>span{color:var(--nsr-green);font-size:13px;font-weight:800;letter-spacing:.12em}
.nsr-section-intro h2{font-size:clamp(34px,5vw,54px);line-height:1.1;margin:10px 0 16px;letter-spacing:-.035em}
.nsr-section-intro p{font-size:18px;line-height:1.7;color:var(--nsr-muted);margin:0}
.nsr-career-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.nsr-career-grid article{position:relative;background:#fff;border:1px solid var(--nsr-border);border-radius:18px;padding:28px;box-shadow:0 12px 30px rgba(20,45,14,.07)}
.nsr-career-grid article b{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#61a512;color:#fff}
.nsr-career-grid h3{font-size:22px;margin:20px 0 9px}
.nsr-career-grid p{color:var(--nsr-muted);line-height:1.65;margin:0}
.nsr-career-cta{grid-column:1/-1;margin:26px auto 0;max-width:900px;text-align:center;border-radius:18px;background:linear-gradient(135deg,#18390b,#61a512);color:#fff;padding:38px}
.nsr-career-cta h2{font-size:34px;color:#fff;margin:0 0 8px}
.nsr-career-cta p{color:rgba(255,255,255,.9);margin:0 0 20px}
.nsr-career-cta a{display:inline-flex;background:#fff;color:#397708;text-decoration:none;font-weight:800;border-radius:9px;padding:13px 22px}

/* Projects: retain only the working dynamic filters */
body.page-id-42 .nsr-projects-dynamic{max-width:1180px;margin:0 auto;padding:10px 24px 68px}
body.page-id-42 .nsr-project-tabs{justify-content:center;margin-bottom:36px}
body.page-id-42 .nsr-project-tabs button{min-width:150px}
body.page-id-42 .nsr-project-card{border-width:1px;box-shadow:0 14px 34px rgba(20,45,14,.09)}
body.page-id-42 .nsr-project-image{background-image:url('https://nsrealtors.com/wp-content/uploads/2026/08/ChatGPT-Image-Aug-1-2026-03_46_02-PM.png');background-size:cover;background-position:center}
body.page-id-42 .nsr-project-image:empty{min-height:320px}
body.page-id-42 .nsr-project-content{border-top:4px solid var(--nsr-green)}
body.single-project main.site-main{padding-top:48px}
body.single-project .entry-title{text-align:center}
body.single-project .nsr-project-after-content{box-shadow:0 18px 42px rgba(20,45,14,.18)}

/* Broken management portraits get clean framed fallbacks */
body.page-id-54 img.wp-image-298,body.page-id-54 img.wp-image-296{width:100%;aspect-ratio:4/3;object-fit:cover;background:#eaf2e4;border-radius:14px 14px 0 0}

@media(max-width:1024px){
 .nsr-contact-points{grid-template-columns:repeat(2,minmax(0,1fr))}
 .nsr-career-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .nsr-career-grid article:last-child{grid-column:1/-1}
}
@media(max-width:767px){
 body.page-id-46 .entry-title,body.page-id-48 .entry-title{margin:20px auto 30px}
 .nsr-contact-points{grid-template-columns:1fr;padding:0 16px;margin-bottom:30px}
 .nsr-career-redesign{padding:42px 16px;margin:0 14px 48px;border-radius:18px}
 .nsr-career-grid{grid-template-columns:1fr}
 .nsr-career-grid article:last-child{grid-column:auto}
 .nsr-career-cta{padding:30px 20px}
 body.page-id-42 .nsr-projects-dynamic{padding-left:16px;padding-right:16px}
 body.page-id-42 .nsr-project-tabs{justify-content:flex-start}
 body.page-id-42 .nsr-project-tabs button{min-width:auto;flex:1}
}


/* Full dynamic single-project presentation */
body.single-project main.site-main{display:none}
.nsr-single-showcase{max-width:1180px;margin:54px auto 76px;padding:0 24px}
.nsr-single-hero{min-height:570px;border-radius:24px;background-size:cover;background-position:center;display:flex;align-items:flex-end;overflow:hidden;box-shadow:0 24px 55px rgba(20,45,14,.18)}
.nsr-single-hero>div{max-width:760px;padding:clamp(34px,6vw,72px);color:#fff}
.nsr-single-hero span,.nsr-project-description>span{display:inline-flex;color:#9bda5c;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:14px}
.nsr-single-hero h1{color:#fff;font-size:clamp(42px,6vw,72px);line-height:1.03;letter-spacing:-.045em;margin:0 0 18px}
.nsr-single-hero p{font-size:18px;line-height:1.65;color:rgba(255,255,255,.9);margin:0 0 26px}
.nsr-single-hero a,.nsr-project-final-cta a{display:inline-flex;background:#61a512;color:#fff;text-decoration:none;font-weight:800;border-radius:10px;padding:15px 24px}
.nsr-project-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0}
.nsr-project-detail-grid article{border:1px solid var(--nsr-border);border-radius:18px;background:#fff;padding:30px;box-shadow:0 12px 30px rgba(20,45,14,.07)}
.nsr-project-detail-grid b{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#edf6e6;color:#397708}
.nsr-project-detail-grid h2{font-size:23px;line-height:1.25;margin:18px 0 9px}
.nsr-project-detail-grid p{color:var(--nsr-muted);line-height:1.65;margin:0}
.nsr-project-description{display:grid;grid-template-columns:.75fr 1fr;column-gap:48px;align-items:start;margin:28px 0;padding:54px;border:1px solid var(--nsr-border);border-radius:20px;background:#f7faf5}
.nsr-project-description>span{grid-column:1/-1}
.nsr-project-description h2{font-size:clamp(32px,4vw,48px);line-height:1.12;margin:0}
.nsr-project-description p{color:var(--nsr-muted);font-size:17px;line-height:1.75;margin:0 0 14px}
.nsr-project-final-cta{text-align:center;border-radius:20px;background:linear-gradient(135deg,#18390b,#61a512);color:#fff;padding:clamp(34px,6vw,58px)}
.nsr-project-final-cta h2{color:#fff;font-size:clamp(30px,4vw,44px);margin:0 0 8px}
.nsr-project-final-cta p{color:rgba(255,255,255,.9);margin:0 0 22px}
.nsr-project-final-cta a{background:#fff;color:#397708}
@media(max-width:767px){
 .nsr-single-showcase{margin:30px auto 48px;padding:0 15px}
 .nsr-single-hero{min-height:500px;border-radius:18px}
 .nsr-single-hero>div{padding:28px 22px}
 .nsr-project-detail-grid{grid-template-columns:1fr}
 .nsr-project-description{grid-template-columns:1fr;padding:28px 22px;gap:16px}
}

/* contact-mobile-width-fix */
@media(max-width:767px){body.page-id-46 .elementor-element-827a684{width:calc(100% - 22px)!important}}


/* FINAL: restore the complete eight-card Elementor project showcase */
body.page-id-42 .elementor-widget-n-tabs{display:block!important;max-width:1180px!important;margin:0 auto 76px!important;padding:0 24px!important}
body.page-id-42 .nsr-projects-dynamic{display:none!important}
body.page-id-42 .e-n-tabs-heading{display:flex!important;justify-content:center!important;gap:20px!important;flex-wrap:wrap!important;margin-bottom:34px!important}
body.page-id-42 .e-n-tab-title{min-width:160px!important;border:1px solid #61a512!important;border-radius:10px!important;padding:16px 24px!important;font-weight:700!important}
body.page-id-42 .e-n-tab-title[aria-selected="true"]{background:#61a512!important;color:#fff!important;box-shadow:0 8px 20px rgba(70,130,15,.2)!important}
body.page-id-42 .e-n-tabs-content [role="tabpanel"]>.e-con{gap:20px!important}
body.page-id-42 .e-n-tabs-content [role="tabpanel"]>.e-con>.e-con{border:1px solid #dfe8da!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 10px 26px rgba(20,45,14,.08)!important;background:#fff!important}
body.page-id-42 .e-n-tabs-content img{width:100%!important;aspect-ratio:16/11!important;object-fit:cover!important}

/* FINAL: Contact spacing only */
body.page-id-46 .entry-title{margin-bottom:72px!important}
body.page-id-46 .elementor-element-b4185c1 h2{margin-bottom:28px!important}
body.page-id-46 .elementor-element-b4185c1{margin-bottom:54px!important}
body.page-id-46 .nsr-contact-points{margin-top:18px!important;margin-bottom:58px!important}

@media(max-width:767px){
 body.page-id-42 .elementor-widget-n-tabs{padding:0 15px!important}
 body.page-id-42 .e-n-tabs-heading{gap:10px!important}
 body.page-id-42 .e-n-tab-title{min-width:calc(50% - 8px)!important;padding:12px 10px!important}
 body.page-id-46 .entry-title{margin-bottom:46px!important}
 body.page-id-46 .elementor-element-b4185c1 h2{margin-bottom:20px!important}
 body.page-id-46 .elementor-element-b4185c1{margin-bottom:38px!important}
}


/* Contact mobile width correction — September 28, 2026 */
@media(max-width:767px){
 body.page-id-46 .elementor-element-22df3e0{
  --width:100%!important;--container-widget-width:100%!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  flex:0 1 100%!important;align-self:stretch!important;
  margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;
 }
 body.page-id-46 .elementor-element-56f0b45,
 body.page-id-46 .elementor-element-827a684,
 body.page-id-46 .elementor-element-1596459{
  --width:100%!important;--container-widget-width:100%!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
 }
}


/* Whole-site mobile QA finishing pass — September 28, 2026 */
@media(max-width:767px){
 body.single-post .entry-content h1{font-size:30px!important;line-height:1.2!important;margin:1.25em 0 .55em!important;letter-spacing:-.02em!important}
 body.single-post .entry-content h2{font-size:27px!important;line-height:1.25!important;margin:1.2em 0 .5em!important}
 body.single-post .entry-content h3{font-size:23px!important;line-height:1.3!important}
 body:not(.elementor-page) .entry-title{font-size:clamp(34px,10vw,42px)!important;line-height:1.1!important;overflow-wrap:anywhere}
 .entry-content,.elementor-widget-text-editor,.elementor-heading-title,.elementor-icon-box-title{overflow-wrap:anywhere}
 .hfe-nav-menu a,.elementor-button,.nsr-project-tabs button{min-height:44px}
 .site-footer .elementor-icon-list-item,.site-footer a{max-width:100%;overflow-wrap:anywhere}
}


/* Mobile header logo, Our Values buttons and spacing — October 2, 2026 */
@media(max-width:767px){
 body.page-id-50 .elementor-element-96516e7 img{width:210px!important;max-width:62vw!important;height:auto!important}
 body.page-id-50 .elementor-widget-button.elementor-align-right{text-align:left!important}
 body.page-id-50 .nsr-values-intro{gap:14px!important;padding-bottom:24px!important}
}