/* =========================================================================
   Rooftops — Location / Service / Project template
   Scoped entirely under .rtes-location so nothing leaks into the Divi site.
   ========================================================================= */

.rtes-location{
	--green:#55b632; --green-600:#489a29; --green-700:#3c8422;
	--ink:#1a1a1a;
	--charcoal:#1f1f1f; --charcoal-2:#181818;
	--text:#4a4f52;
	--bg:#ffffff; --soft:#f6f7f5;
	--line:#e6e7e4; --muted:#8a8f90;
	--display:'Montserrat', 'Open Sans', system-ui, sans-serif;
	--body:'Open Sans', system-ui, sans-serif;

	background:var(--bg);
	color:var(--text);
	font-family:var(--body);
	line-height:1.62;
}
.rtes-location *{box-sizing:border-box}

.rtes-location .rtes-wrap{max-width:1180px;margin:0 auto;padding:0 26px}

/* ---------- HERO ---------- */
.rtes-location .rtes-hero{
	position:relative;overflow:hidden;
	background-color:#20262a;
	background-position:center;background-size:cover;background-repeat:no-repeat;
}
.rtes-location .rtes-hero:not(.has-figure){
	background-image:linear-gradient(120deg,#2b3940,#171f23);
}
.rtes-location .rtes-hero::before{
	content:"";position:absolute;inset:0;
	background:linear-gradient(90deg,rgba(18,22,24,.90) 0%,rgba(18,22,24,.72) 48%,rgba(18,22,24,.30) 100%);
}
.rtes-location .rtes-hero__inner{position:relative;padding:70px 0 64px}
.rtes-location .rtes-hero__col{max-width:640px}

.rtes-location .rtes-eyebrow{
	display:inline-flex;align-items:center;gap:9px;margin:0 0 16px;
	font:700 12px/1 var(--body);letter-spacing:.18em;text-transform:uppercase;color:var(--green);
}
.rtes-location .rtes-eyebrow::before{content:"";width:22px;height:3px;background:var(--green)}

.rtes-location .rtes-hero h1{
	font:800 44px/1.08 var(--display);color:#fff;margin:0 0 15px;letter-spacing:-.01em;
}
.rtes-location .rtes-hero__sub{font-size:17.5px;color:#d7dbda;margin:0 0 26px;max-width:530px}

.rtes-location .rtes-cta-row{display:flex;gap:14px;flex-wrap:wrap;align-items:center}

.rtes-location .rtes-btn{
	display:inline-flex;align-items:center;gap:9px;
	font:700 12.5px/1 var(--body);letter-spacing:.09em;text-transform:uppercase;
	padding:15px 24px;border-radius:2px;text-decoration:none;cursor:pointer;border:0;
}
.rtes-location .rtes-btn--primary{background:var(--green);color:#fff}
.rtes-location .rtes-btn--primary:hover{background:var(--green-600);color:#fff}
.rtes-location .rtes-btn--block{width:100%;justify-content:center;padding:14px}
.rtes-location .rtes-btn--ghost{
	color:#fff;text-decoration:none;font-weight:700;letter-spacing:.02em;font-size:15px;
}
.rtes-location .rtes-btn--ghost .arw{color:var(--green)}

.rtes-location .rtes-stats{
	position:relative;display:flex;gap:46px;margin-top:42px;padding:24px 0 4px;
	border-top:1px solid rgba(255,255,255,.14);flex-wrap:wrap;
}
.rtes-location .rtes-stat b{display:block;font:800 22px/1 var(--display);color:#fff}
.rtes-location .rtes-stat span{
	display:block;margin-top:7px;font:700 10.5px/1.3 var(--body);
	letter-spacing:.11em;text-transform:uppercase;color:#a9b1af;
}

/* angled divider */
.rtes-location .rtes-roofline{display:block;width:100%;height:30px;margin-top:-1px}

/* ---------- BODY GRID ---------- */
.rtes-location .rtes-layout{
	display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:54px;
	padding:50px 0 70px;align-items:start;
}

/* ---------- CONTENT (styles the automation's output) ---------- */
.rtes-location .rtes-content > *:first-child{margin-top:0}
.rtes-location .rtes-content h2{
	font:800 29px/1.16 var(--display);color:var(--ink);margin:36px 0 13px;letter-spacing:-.01em;
}
.rtes-location .rtes-content h3{
	font:700 19px/1.25 var(--display);color:var(--ink);margin:24px 0 8px;
}
.rtes-location .rtes-content p{margin:0 0 15px;font-size:16px;color:var(--text)}
.rtes-location .rtes-content strong{color:var(--ink)}
.rtes-location .rtes-content a{color:var(--green-700);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.rtes-location .rtes-content img{max-width:100%;height:auto;border-radius:4px}
.rtes-location .rtes-content ul{margin:4px 0 18px;padding:0;list-style:none}
.rtes-location .rtes-content ul li{position:relative;padding:7px 0 7px 24px;font-size:15.5px;color:var(--text)}
.rtes-location .rtes-content ul li::before{
	content:"";position:absolute;left:2px;top:14px;
	border-left:7px solid var(--green);border-top:5px solid transparent;border-bottom:5px solid transparent;
}

/* ---------- STICKY RAIL ---------- */
.rtes-location .rtes-rail{position:sticky;top:22px;display:flex;flex-direction:column;gap:18px}

.rtes-location .rtes-card{border-radius:4px;overflow:hidden;border:1px solid var(--line);background:#fff}
.rtes-location .rtes-card--dark{background:var(--charcoal);border-color:var(--charcoal)}
.rtes-location .rtes-card__pad{padding:22px 22px 24px}

.rtes-location .rtes-klabel{
	margin:0 0 10px;font:700 10.5px/1 var(--body);letter-spacing:.16em;
	text-transform:uppercase;color:var(--green);
}
.rtes-location .rtes-card--light .rtes-klabel{color:var(--green-700)}

.rtes-location .rtes-card--dark h3{font:800 20px/1.18 var(--display);color:#fff;margin:0 0 6px}
.rtes-location .rtes-small{font-size:13.5px;color:#c3c8c6;margin:0 0 16px}

.rtes-location .rtes-field{
	width:100%;margin-bottom:10px;padding:11px 12px;
	background:#fff;border:1px solid #3a3a3a;border-radius:3px;
	font:400 14px var(--body);color:#1a1a1a;
}
.rtes-location .rtes-field::placeholder{color:#8b938f}

.rtes-location .rtes-callrow{
	display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;
	color:#c9cecc;font-weight:600;font-size:15px;
}
.rtes-location .rtes-callrow a{color:#fff;text-decoration:none;font-weight:800}
.rtes-location .rtes-noobl{
	display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;
	font-size:11.5px;color:#909795;
}
.rtes-location .rtes-form-note{font-size:11px;color:#8b938f;margin:10px 0 0}
.rtes-location .rtes-form-note code{color:#c3c8c6;font-size:11px}

/* why-us checklist */
.rtes-location .rtes-why{margin:0;padding:0;list-style:none}
.rtes-location .rtes-why li{
	position:relative;padding:9px 0 9px 28px;font-size:14px;color:var(--text);
	border-bottom:1px solid var(--line);
}
.rtes-location .rtes-why li:last-child{border-bottom:0}
.rtes-location .rtes-why li::before{
	content:"";position:absolute;left:3px;top:12px;width:12px;height:7px;
	border-left:2.5px solid var(--green);border-bottom:2.5px solid var(--green);transform:rotate(-45deg);
}

/* service-area nav — base row styling (shared by the tree below) */
.rtes-location .rtes-serving h4{
	margin:0 0 4px;padding:0 0 12px;font:700 11.5px/1 var(--body);
	letter-spacing:.14em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line);
}
.rtes-location .rtes-serving ul{list-style:none;margin:0;padding:0}
.rtes-location .rtes-serving li a{
	display:flex;align-items:center;justify-content:space-between;padding:10px 0;
	font-size:14.5px;color:var(--text);text-decoration:none;font-weight:400;
	border-bottom:1px solid var(--line);
}
.rtes-location .rtes-serving li:last-child a{border-bottom:0}
.rtes-location .rtes-serving li a:hover{color:var(--green-700)}
.rtes-location .rtes-serving li a .go{color:#cfd3d0}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
	.rtes-location .rtes-layout{grid-template-columns:1fr;gap:36px}
	.rtes-location .rtes-rail{position:static}
	.rtes-location .rtes-hero h1{font-size:34px}
}
@media (max-width:520px){
	.rtes-location .rtes-hero__inner{padding:52px 0 46px}
	.rtes-location .rtes-stats{gap:26px}
}

/* accessibility: honor reduced motion + visible focus */
.rtes-location a:focus-visible,
.rtes-location .rtes-btn:focus-visible,
.rtes-location .rtes-field:focus-visible{outline:3px solid var(--green);outline-offset:2px}

/* =========================================================================
   Projects archive — blog-style grid of job entries.
   ========================================================================= */
.rtes-location .rtes-archive-head{
	position:relative;padding:56px 0 50px;
	background:#20262a;background-image:linear-gradient(120deg,#2b3940,#171f23);
}
.rtes-location .rtes-archive-head h1{font:800 40px/1.08 var(--display);color:#fff;margin:0 0 10px;letter-spacing:-.01em}
.rtes-location .rtes-archive-sub{color:#d7dbda;font-size:17px;margin:0;max-width:560px}

.rtes-location .rtes-grid{
	display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding:44px 0 22px;
}
@media (max-width:900px){.rtes-location .rtes-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.rtes-location .rtes-grid{grid-template-columns:1fr}}

.rtes-location .rtes-pcard{
	display:flex;flex-direction:column;text-decoration:none;background:#fff;
	border:1px solid var(--line);border-radius:6px;overflow:hidden;
	transition:transform .15s ease, box-shadow .15s ease;
}
.rtes-location .rtes-pcard:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.10)}
.rtes-location .rtes-pcard__media{
	display:block;aspect-ratio:16/10;
	background:#dfe3df center/cover no-repeat;background-image:linear-gradient(120deg,#cdd3cc,#b3bdb2);
}
.rtes-location .rtes-pcard__body{display:block;padding:18px 20px 22px}
.rtes-location .rtes-pcard__body h3{font:800 18px/1.25 var(--display);color:var(--ink);margin:0 0 8px}
.rtes-location .rtes-pcard__body p{font-size:14.5px;color:var(--text);margin:0 0 12px}
.rtes-location .rtes-pcard__go{
	font:700 12.5px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--green-700);
}
.rtes-location .rtes-pcard:hover .rtes-pcard__go{color:var(--green-600)}

.rtes-location .rtes-pagination{padding:8px 0 60px}
.rtes-location .rtes-pagination .page-numbers{
	display:inline-block;padding:8px 13px;margin:0 4px 4px 0;border:1px solid var(--line);
	border-radius:3px;text-decoration:none;color:var(--ink);font-weight:700;font-size:14px;
}
.rtes-location .rtes-pagination .page-numbers.current{background:var(--green);color:#fff;border-color:var(--green)}
.rtes-location .rtes-pagination .page-numbers:hover:not(.current){border-color:var(--green);color:var(--green-700)}
.rtes-location .rtes-empty{padding:54px 0;color:var(--muted);font-size:16px}

/* =========================================================================
   Gravity Forms inside the dark contact card.
   ========================================================================= */
.rtes-location .rtes-card--dark .gform_wrapper{margin:0}
.rtes-location .rtes-card--dark .gform_wrapper form{margin:0}
.rtes-location .rtes-card--dark .gform_wrapper .gform_title{
	color:#fff;font:800 18px/1.2 var(--display);margin:0 0 4px;
}
.rtes-location .rtes-card--dark .gform_wrapper .gform_description,
.rtes-location .rtes-card--dark .gform_wrapper .gsection_description{
	color:#c3c8c6;font-size:13px;
}
.rtes-location .rtes-card--dark .gform_wrapper .gfield_label{
	color:#e7eae9 !important;font:600 13px/1.3 var(--body);margin-bottom:5px;
}
.rtes-location .rtes-card--dark .gform_wrapper .gfield_required{color:var(--green)}
.rtes-location .rtes-card--dark .gform_wrapper .gform_fields{grid-row-gap:12px;row-gap:12px}
.rtes-location .rtes-card--dark .gform_wrapper .gfield{margin:0}
.rtes-location .rtes-card--dark .gform_wrapper input[type="text"],
.rtes-location .rtes-card--dark .gform_wrapper input[type="email"],
.rtes-location .rtes-card--dark .gform_wrapper input[type="tel"],
.rtes-location .rtes-card--dark .gform_wrapper input[type="number"],
.rtes-location .rtes-card--dark .gform_wrapper input[type="url"],
.rtes-location .rtes-card--dark .gform_wrapper select,
.rtes-location .rtes-card--dark .gform_wrapper textarea{
	width:100%;padding:11px 12px;background:#fff;border:1px solid #3a3a3a;border-radius:3px;
	font:400 14px var(--body);color:#1a1a1a;
}
.rtes-location .rtes-card--dark .gform_wrapper input::placeholder,
.rtes-location .rtes-card--dark .gform_wrapper textarea::placeholder{color:#8b938f}
.rtes-location .rtes-card--dark .gform_wrapper textarea{min-height:96px}
.rtes-location .rtes-card--dark .gform_wrapper .gform_footer{margin:14px 0 0;padding:0}
.rtes-location .rtes-card--dark .gform_wrapper .gform_footer input[type="submit"],
.rtes-location .rtes-card--dark .gform_wrapper .gform_button{
	width:100%;justify-content:center;cursor:pointer;
	background:var(--green) !important;color:#fff !important;border:0 !important;
	padding:14px 24px;border-radius:2px;
	font:700 12.5px/1 var(--body);letter-spacing:.09em;text-transform:uppercase;
}
.rtes-location .rtes-card--dark .gform_wrapper .gform_footer input[type="submit"]:hover,
.rtes-location .rtes-card--dark .gform_wrapper .gform_button:hover{background:var(--green-600) !important}
.rtes-location .rtes-card--dark .gform_wrapper .gfield_description,
.rtes-location .rtes-card--dark .gform_wrapper .validation_message{
	color:#ffd7cf;font-size:12.5px;background:transparent;border:0;padding:4px 0 0;
}
.rtes-location .rtes-card--dark .gform_confirmation_message{color:#e7eae9;font-size:14.5px}

/* =========================================================================
   Hierarchical service-area tree (v3.1.0).
   Placed last so it wins specificity ties with the flat .rtes-serving rules.
   ========================================================================= */

/* climb-up link to the ancestor above the head */
.rtes-location .rtes-serving__up{
	display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;
	font:700 12px/1 var(--body);letter-spacing:.03em;color:var(--muted);text-decoration:none;
}
.rtes-location .rtes-serving__up:hover{color:var(--green-700)}
.rtes-location .rtes-serving__up .up{color:var(--green);font-weight:800}

.rtes-location .rtes-serving__tree{list-style:none;margin:0;padding:0}
.rtes-location .rtes-serving__tree li > a,
.rtes-location .rtes-serving__tree li > span{
	display:flex;align-items:center;justify-content:space-between;gap:10px;
	padding:9px 0;font-size:14.5px;color:var(--text);text-decoration:none;
	border-bottom:1px solid var(--line);
}
.rtes-location .rtes-serving__tree li:last-child > a,
.rtes-location .rtes-serving__tree li:last-child > span{border-bottom:0}
.rtes-location .rtes-serving__tree li > a:hover{color:var(--green-700)}
.rtes-location .rtes-serving__tree li > a .go{color:#cfd3d0}

/* tier 1 — the branch head (city) */
.rtes-location .rtes-tier1 > a,
.rtes-location .rtes-tier1 > span{font-weight:800;color:var(--ink)}

/* tier 2 — indented children, with a connector rail */
.rtes-location .rtes-tier2{position:relative;padding-left:16px}
.rtes-location .rtes-tier2::before{
	content:"";position:absolute;left:3px;top:0;bottom:0;width:2px;background:var(--line);
}
.rtes-location .rtes-tier2 > a,
.rtes-location .rtes-tier2 > span{font-size:14px}

/* current page — marked, never linked */
.rtes-location .rtes-serving__tree li.current > span{justify-content:flex-start;color:var(--ink);font-weight:800}
.rtes-location .rtes-serving__tree li.current > span::before{
	content:"";display:inline-block;width:6px;height:6px;border-radius:50%;
	background:var(--green);margin-right:8px;flex:0 0 auto;
}
