/* nclservicesllc.com — measured from the WordPress site (Blocksy theme + Elementor),
   see ../../_wp_reference/styles/. Two looks share one stylesheet:
     .kind-landing    home + thank-you (Varela Round / Montserrat, Elementor sections)
     .kind-page       blog, posts, categories, sitemap, 404 (Blocksy's system font)
   Breakpoints follow the old site: Elementor 1024 / 767, Blocksy 999 / 689. */

:root {
  --text: #3a4f66;
  --heading: #192a3d;
  --link: #1559ed;
  --blue: #0b40ac;
  --page-bg: #fafbfc;
  --footer-bg: #f2f5f7;
  --border: #e1e8ed;
  --box-grey: #eeeeee;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
         "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --varela: "Varela Round", var(--sys);
  --mont: "Montserrat", var(--sys);
  --shadow-box: 0 0 5px 1px rgba(0, 0, 0, .5);
  --shadow-card: 0 0 5px 1px rgba(0, 0, 0, .44);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sys); font-size: 16px; line-height: 1.65; color: var(--text);
  background: var(--page-bg); overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4, h5, h6, p, ul, figure { margin: 0; }
button, input, textarea { font: inherit; }

.container { width: min(1290px, 90vw); margin-inline: auto; }
@media (max-width: 689px) { .container { width: 88vw; } }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- header / footer (Blocksy) ---------------------------------------------- */
.site-header { background: #fff; position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; height: 80px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #000; }
.brand img { width: 50px; height: 50px; }
.brand-name { font-size: 25px; line-height: 1.5; font-weight: 700; }
@media (max-width: 999px) { .header-row { height: 70px; } }

.site-footer { background: var(--footer-bg); }
.footer-copy { display: flex; justify-content: flex-end; align-items: center; min-height: 70px; }
.footer-copy p { font-size: 15px; line-height: 1.3; }
@media (max-width: 689px) { .footer-copy { justify-content: center; } }

/* ---- shared Elementor pieces -------------------------------------------------- */
.bg {
  background-image: var(--bg); background-size: cover; background-position: center;
  position: relative;
}
@supports (background-image: image-set(url(x.webp) type("image/webp"))) {
  .bg { background-image: image-set(var(--bg-webp) type("image/webp"), var(--bg) type("image/jpeg")); }
}
.overlay { position: absolute; inset: 0; background: #000; opacity: .3; }

/* ---- home: hero + estimate form ----------------------------------------------- */
.hero { min-height: 594px; display: flex; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 652px 448px; gap: 10px;
  width: min(1120px, calc(100% - 20px)); align-items: center; padding: 10px 0;
}
.hero-text { padding-left: 10px; }
.hero-kicker {
  font-family: var(--mont); font-size: 18px; line-height: 1; font-weight: 400; color: #fff;
  text-transform: capitalize; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--mont); font-size: 70px; line-height: 1; font-weight: 300; color: #fff;
  text-transform: uppercase;
}

.estimate-card {
  background: rgba(255, 255, 255, .75); border-radius: 7px; box-shadow: var(--shadow-card);
  padding: 25px 35px 35px; scroll-margin-top: 20px;
}
.estimate-title {
  font-family: var(--varela); font-size: 30px; line-height: 1.65; font-weight: 300; color: #000;
  text-align: center; margin-bottom: 0;
}
.estimate-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 10px; margin-top: 0; }
.estimate-form .fields .wide { grid-column: 1 / -1; }
.estimate-form input[type=text], .estimate-form input[type=tel], .estimate-form input[type=email] {
  width: 100%; height: 47px; padding: 6px 16px; border: 0; border-radius: 5px;
  background: #fafafa; color: #1f2124; font-family: var(--mont); font-size: 15px;
}
.estimate-form input::placeholder { color: #7a7a7a; opacity: 1; }
.estimate-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.checks { border: 0; padding: 0; margin: 15px 0 0; min-width: 0; }
.checks legend {
  font-family: var(--varela); font-size: 18px; line-height: 1.65; font-weight: 600; color: #000;
  padding: 0; margin-bottom: 9px;
}
.check-list { display: flex; flex-wrap: wrap; gap: 4px 11px; width: 50%; }
.check {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--mont); font-size: 15px;
  line-height: 1.3; color: #000; white-space: nowrap;
}
.check input { margin: 0; width: 13px; height: 13px; }
.send-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.btn-send {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-family: var(--varela); font-size: 16px;
  line-height: 1.65; font-weight: 500; padding: 15px 30px; border-radius: 30px;
}
.btn-send:hover, .btn-send:focus-visible { background: #0a3790; }
.form-status {
  background: #fff3cd; color: #5c4400; border-radius: 5px; padding: 8px 12px;
  font-family: var(--mont); font-size: 14px; margin: 6px 0 12px;
}

/* ---- home: Our Services --------------------------------------------------------- */
.services { padding: 80px 0 90px; }
.services-grid {
  display: grid; grid-template-columns: 448px 1fr; gap: 10px; align-items: center;
  width: min(1120px, calc(100% - 20px));
}
.services-box {
  background: rgba(0, 0, 0, .56); border-radius: 7px; box-shadow: var(--shadow-box);
  padding: 10px; min-height: 387px; display: flex; flex-direction: column; justify-content: center;
}
.services-title {
  font-family: var(--varela); font-size: 50px; line-height: 1.2; font-weight: 300; color: #fff;
  text-align: center; text-transform: capitalize; margin-bottom: 20px;
}
.services-text {
  font-family: var(--mont); font-size: 18px; line-height: 1.4; font-weight: 300; color: #fffdfd;
  text-align: center; padding: 0 15px;
}
.services-photo img { width: 100%; aspect-ratio: 652 / 367; object-fit: cover; }

/* ---- home: What We Offer -------------------------------------------------------- */
.offer { padding: 0 0 70px; }
.offer-title {
  font-family: var(--varela); font-size: 40px; line-height: 1.2; font-weight: 300; color: #000;
  text-align: center; text-transform: capitalize; margin-bottom: 30px;
}
.only-phone { display: none; }
.offer-grid {
  display: grid; grid-template-columns: 540fr 533fr; gap: 20px;
  width: min(1100px, calc(100% - 20px)); margin-inline: auto;
}
.offer-box {
  background: var(--box-grey); border-radius: 7px; box-shadow: var(--shadow-box); padding: 15px;
  font-family: var(--mont); font-size: 16px; line-height: 1.65; color: var(--text);
}
.offer-why { grid-column: 1 / -1; justify-self: center; width: min(645px, 100%); }
.box-title {
  font-family: var(--varela); font-size: 22px; line-height: 1.65; font-weight: 500; color: #000;
  text-align: center; margin-bottom: 10px;
}
.box-title span { border-bottom: 1px solid #000; padding: 0 2px 1px; }
.offer-box ul { padding-left: 40px; }

/* ---- home: Service Area --------------------------------------------------------- */
.area { background: var(--box-grey); padding: 40px 0; }
.area-inner { width: min(1060px, calc(100% - 20px)); }
.area-kicker { font-family: var(--varela); font-size: 16px; line-height: 1.65; color: var(--blue); }
.area-kicker span { display: inline-block; border-bottom: 1px solid var(--blue); padding-right: 8px; }
.area-title {
  font-family: var(--varela); font-size: 35px; line-height: 1; font-weight: 500; color: var(--heading);
  margin: 10px 0 5px;
}
.area-text { font-family: var(--varela); font-size: 16px; line-height: 1.65; }
.towns {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 10px; margin: 40px -60px 0;
  justify-items: center;
}
.town {
  display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: #fff;
  font-size: 15px; line-height: 1; padding: 12px 24px; border-radius: 3px; text-decoration: none;
}
.town:hover { background: #0a3790; }

/* ---- home: contact --------------------------------------------------------------- */
.contact { padding: 80px 0 110px; }
.contact-grid {
  display: grid; grid-template-columns: 560px 1fr; gap: 60px; align-items: center;
  width: min(1120px, calc(100% - 20px));
}
.contact-text { max-width: 440px; }
.contact-kicker {
  font-family: var(--mont); font-size: 20px; line-height: 1; font-weight: 300; color: var(--blue);
  text-transform: capitalize; margin-bottom: 7px;
}
.contact-title {
  font-family: var(--varela); font-size: 40px; line-height: 1.2; font-weight: 300; color: #000;
  text-transform: capitalize; margin-bottom: 20px;
}
.contact-lead { font-family: var(--mont); font-size: 16px; line-height: 1.4; font-weight: 200; color: #000; }
.contact-list { list-style: none; padding: 0; margin-top: 20px; font-family: var(--mont); font-size: 18px; line-height: 1.65; }
.contact-list a { color: var(--blue); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list.hours { color: #000; margin-top: 15px; }
.contact-list.hours li + li { margin-top: 5px; }

/* ---- thank-you -------------------------------------------------------------------- */
.thanks { min-height: 650px; display: flex; align-items: center; }
.thanks-box {
  position: relative; max-width: 777px; margin: 0 auto; background: rgba(255, 255, 255, .87);
  border-radius: 7px; box-shadow: var(--shadow-box); padding: 50px 25px;
}
.thanks-title {
  font-family: var(--varela); font-size: 50px; line-height: 1.2; font-weight: 300; color: #000;
  text-align: center; text-transform: capitalize; margin-bottom: 20px;
}
.thanks-text {
  font-family: var(--mont); font-size: 22px; line-height: 1.4; font-weight: 300; color: #000;
  text-align: center;
}
.thanks-text + .thanks-text { margin-top: 12px; font-size: 18px; }

/* ---- Elementor tablet (≤1024) and mobile (≤767) --------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; padding: 60px 0; }
  .hero-text { text-align: center; padding: 0; margin-bottom: 30px; }
  .hero-title { font-size: 50px; }
  .hero-grid .estimate-card { width: min(560px, 100%); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .contact-grid .estimate-card { width: min(560px, 100%); order: 2; }
  .contact-text { order: 1; text-align: center; }
  .towns { margin-inline: 0; }
}
@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero-grid { padding: 85px 0 10px; width: calc(100% - 30px); }
  .hero-text { margin-bottom: 80px; padding: 0 5px; }
  .hero-kicker { font-size: 16px; margin-bottom: 8px; }
  .hero-title { font-size: 35px; }
  .estimate-card { padding: 5px 12px 13px; }
  .hero-grid .estimate-card { background: rgba(255, 255, 255, .73); margin: 0 5px; }
  .estimate-form .fields { grid-template-columns: 1fr; gap: 10px; }
  .check-list { width: 100%; max-width: 150px; }
  .services { padding: 55px 0 30px; }
  .services-grid { grid-template-columns: 1fr; width: calc(100% - 20px); gap: 20px; }
  .services-box { min-height: 0; padding: 10px 15px; }
  .services-title { font-size: 30px; margin-bottom: 20px; }
  .services-text { font-size: 16px; padding: 0; }
  .services-photo { padding: 0 10px; }
  .offer { padding: 55px 0 20px; }
  .only-wide { display: none; }
  .only-phone { display: block; }
  .offer-title { font-size: 25px; margin-bottom: 30px; }
  .offer-grid {
    grid-template-columns: 1fr; gap: 0; width: calc(100% - 20px);
    background: var(--box-grey); border-radius: 7px; box-shadow: var(--shadow-box); padding: 15px 0;
  }
  .offer-box { box-shadow: none; border-radius: 0; padding: 10px 25px 25px 10px; }
  .offer-why { width: 100%; }
  .area { padding: 30px 0 20px; }
  .area-inner { width: calc(100% - 60px); }
  .area-title { font-size: 25px; font-weight: 300; }
  .towns { grid-template-columns: 1fr 1fr; gap: 20px 10px; margin-top: 30px; }
  .contact { padding: 40px 0 40px; }
  .contact-grid { width: calc(100% - 20px); }
  .contact-text { text-align: left; padding: 0 20px; }
  .contact-kicker, .contact-title { text-align: center; }
  .contact-title { font-size: 25px; }
  .thanks { min-height: 520px; }
  .thanks-title { font-size: 36px; }
  .thanks-text { font-size: 18px; }
}

/* ---- Blocksy pages: blog index, categories ----------------------------------------- */
.blocksy-page { padding: 60px 0; }
.blocksy-page.center { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.card {
  grid-column: span 2; background: #fff; padding: 30px; display: flex; flex-direction: column;
  box-shadow: 0 12px 18px -6px rgba(34, 56, 101, .04);
}
.card-wide { grid-column: span 3; }
.meta {
  list-style: none; padding: 0; margin: 0;
  font-size: 12px; line-height: 1.3; font-weight: 600; text-transform: uppercase;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
}
.meta li { display: inline-flex; align-items: center; }
.meta li + li::before { content: "/"; margin: 0 9px; }
.meta a { color: var(--text); text-decoration: none; }
.meta a:hover { color: var(--link); }
.card-title { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 24px 0 22px; }
.card-title a { color: var(--heading); text-decoration: none; }
.card-title a:hover { color: var(--link); }
.card-excerpt { margin-bottom: 22px; }
.card .meta:last-child { margin-top: auto; }

.pagination {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 60px;
}
.page-nums { display: flex; gap: 0; }
.page-num {
  display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 40px;
  margin: 0 5px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; border: 2px solid transparent;
}
.page-num.current { background: rgba(0, 140, 245, .67); color: #fff; }
a.page-num:hover { border-color: var(--border); }
.page-step {
  display: inline-flex; align-items: center; height: 40px; padding: 0 17px; border-radius: 4px;
  border: 2px solid var(--border); font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: var(--text); text-decoration: none; justify-self: start;
}
.page-step[rel=next] { justify-self: end; }
.page-step[rel=next]::after { content: "›"; margin-left: 8px; font-size: 14px; }
.page-step[rel=prev]::before { content: "‹"; margin-right: 8px; font-size: 14px; }

.archive-head { margin-bottom: 50px; }
.archive-desc { margin-top: 20px; max-width: 760px; }
@media (max-width: 689px) { .archive-desc { display: none; } }
.archive-title { font-size: 40px; line-height: 1.5; font-weight: 700; color: var(--heading); }
.title-label {
  display: block; font-size: 13px; line-height: 1.5; font-weight: 600; text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 999px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card-wide { grid-column: span 1; }
}
@media (max-width: 689px) {
  .cards { grid-template-columns: 1fr; gap: 30px; }
  .card-title { font-size: 18px; }
  .page-nums { display: none; }
}

/* ---- single post -------------------------------------------------------------------- */
.post-layout { overflow: hidden; }
.post-grid { display: grid; grid-template-columns: minmax(0, 890px) minmax(0, 1fr); column-gap: 52px; }
.post { padding: 60px 0; min-width: 0; }
.post-title { font-size: 30px; line-height: 1.5; font-weight: 700; color: var(--heading); }
.post-meta { margin-top: 24px; gap: 4px 0; }
.post-meta .avatar { width: 25px; height: 25px; border-radius: 50%; margin-right: 6px; }
.post-content { margin-top: 46px; }
.post-content p { margin-bottom: 24px; }
.post-content h2, .post-content h3, .post-content h4, .post-content h5 {
  color: var(--heading); font-weight: 700; margin: 34px 0 24px;
}
.post-content h2 { font-size: 35px; line-height: 1.5; }
.post-content h3 { font-size: 30px; line-height: 1.5; }
.post-content h4 { font-size: 25px; line-height: 1.5; }
.post-content > :first-child { margin-top: 0; }
.post-content figure { margin: 0 0 24px; }
.post-content figure + h2, .post-content figure + h3 { margin-top: 58px; }
.post-content figcaption { font-size: 14px; text-align: center; margin-top: 8px; }
.post-content img { width: auto; }
.post-content ul, .post-content ol { margin: 0 0 24px; padding-left: 30px; }

.sidebar { position: relative; padding: 60px 0 60px 35px; }
.sidebar::before {
  content: ""; position: absolute; top: 0; bottom: -100vh; left: 0; right: -100vw;
  background: #fff; z-index: -1;
}
.side-title { font-size: 35px; line-height: 1.5; font-weight: 700; color: var(--heading); margin-bottom: 20px; }
.side-recent, .side-cats { list-style: none; padding: 0; margin: 0 0 40px; }
.side-recent li + li { margin-top: 24px; }
.side-recent a, .side-cats a { color: var(--heading); text-decoration: none; }
.side-recent a:hover, .side-cats a:hover { color: var(--link); }
.post-layout .container { position: relative; z-index: 0; }

@media (max-width: 999px) {
  .post-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 689px) {
  .post { padding-top: 50px; }
  .post-content h2 { font-size: 35px; }
}

/* ---- sitemap / 404 ----------------------------------------------------------------- */
.sm-title { font-size: 30px; line-height: 1.5; font-weight: 700; color: var(--heading); }
.sm-head { font-size: 35px; line-height: 1.5; font-weight: 700; color: var(--heading); margin: 40px 0 20px; }
.table-wrap { overflow-x: auto; }
.sm-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.sm-table th, .sm-table td { border: 1px solid var(--border); padding: 8px; text-align: left; }
.sm-table th { font-weight: 600; text-align: center; }
.sm-table td a { word-break: break-all; }

.nf-title { font-size: 40px; line-height: 1.5; font-weight: 700; color: var(--heading); }
.nf-text { margin-top: 20px; }
@media (max-width: 689px) { .nf-title { font-size: 30px; } }
