/* Sizes and colors are measured from the original quinspections.com (desktop at 1400px wide). */
:root {
  --navy: #152e5c;
  --blue: #3e6ba3;
  --blue-light: #8da7d0;
  --orange: #f38861;
  --orange-dark: #e2744c;
  --ink: #161616;
  --muted: #5f6672;
  --light: #f6f6f6;
  --light-2: #f2f2f2;
  --overlay: rgba(21, 46, 92, .85);
  --sidebar: 208px;
  --radius: 5px;
  --head: "Prompt", "Segoe UI", Arial, sans-serif;
  --body: "Noto Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 24px; color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; }
h3 { font-size: 36px; line-height: 54px; font-weight: 600; color: var(--ink); margin-bottom: 19px; }
p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 14px; font-family: var(--head); font-size: 18px; font-weight: 400; line-height: 1.3; text-align: center; color: #fff; background: var(--orange); border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.btn:hover, .btn:focus-visible { background: #f5a384; }
.btn-contact { width: 200px; min-height: 65px; }
.btn-wide { width: 350px; max-width: 100%; }
.btn-blue { width: 300px; max-width: 100%; min-height: 55px; background: var(--blue); }
.btn-blue:hover, .btn-blue:focus-visible { background: var(--blue-light); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--light); box-shadow: 0 3px 11px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 94px; padding: 0 40px; }
.logo img { width: 133px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .sub-toggle { font-family: var(--body); font-size: 15px; line-height: 22.5px; letter-spacing: .45px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.main-nav a:hover, .main-nav .sub-toggle:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue-light); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.sub-row { display: inline-flex; align-items: center; }
.caret { display: inline-block; width: 6px; height: 6px; margin-left: 14px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.sub-row .caret { margin-left: 0; }
.has-sub.open .caret { transform: translateY(1px) rotate(-135deg); }
.submenu { display: none; }
.has-sub.open > .submenu { display: block; }
.main-nav .submenu a { display: block; font-size: 12px; line-height: 18px; letter-spacing: .36px; font-weight: 700; color: #000; padding: 8px 12px; }
.main-nav .submenu a:hover { color: var(--blue); }
.main-nav .submenu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-close, .nav-overlay { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { width: 133px; min-height: 64px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }

/* Wide desktop (over 1150px): fixed sidebar down the left, 15% of the window
   wide like the original. The logo, menu and phone button scale with it. */
@media (min-width: 1151px) {
  .site-header { position: fixed; top: 0; left: 0; bottom: 0; width: 15%; overflow-y: auto; }
  .header-inner { flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; min-height: 100%; padding: 25px 0 40px; gap: 0; }
  .logo { display: block; padding: 0 25px; }
  .logo img { width: 100%; }
  .main-nav { padding: 32px 40px 0; text-align: center; }
  .main-nav > ul > li > a, .main-nav > ul > li > .sub-toggle, .main-nav .sub-row { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 6px 0; }
  .main-nav .sub-row .sub-toggle { padding: 6px 0 6px 14px; }
  .header-actions { padding: 0 40px; margin-top: 49px; }
  .header-phone { width: 100%; min-height: 60px; font-size: 18px; padding: 0 4px; white-space: normal; }
  .page { margin-left: 15%; }
}

/* Small desktop (1025-1150px): the original collapses the sidebar to a 64px strip
   with a small logo and a menu icon in the middle. */
@media (min-width: 1025px) and (max-width: 1150px) {
  .site-header { position: fixed; top: 0; left: 0; bottom: 0; width: 64px; }
  .header-inner { display: block; height: 100%; padding: 25px 4px 0; }
  .logo img { width: 56px; }
  .header-phone { display: none; }
  .menu-toggle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .menu-toggle span { width: 20px; background: #9a9a9a; margin: 5px 0; }
  .page { margin-left: 64px; }
}

/* Up to 1150px the menu opens as a navy drawer from the right */
@media (max-width: 1150px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 86vw); z-index: 70; background: var(--navy); padding: 76px 24px 40px; overflow-y: auto; text-align: center; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul > li > a, .main-nav > ul > li > .sub-toggle, .main-nav .sub-row { display: inline-flex; align-items: center; min-height: 45px; }
  .main-nav a, .main-nav .sub-toggle, .main-nav a[aria-current="page"] { color: #fff; }
  .main-nav .sub-row .sub-toggle { padding-left: 14px; }
  .main-nav a:hover, .main-nav .sub-toggle:hover { color: var(--orange); }
  .main-nav .submenu a { color: rgba(255,255,255,.85); font-size: 13px; }
  .nav-close { display: block; position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; padding: 4px 10px; cursor: pointer; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 14px; height: 80px; gap: 10px; }
  .logo img { width: 112px; }
  .header-phone { width: auto; min-height: 50px; padding: 0 12px; font-size: 16px; }
}

/* ---------- Heroes ---------- */
.hero { position: relative; color: #fff; background-size: cover; background-position: center; padding: 100px 40px; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.hero > * { position: relative; }
.hero h1 { font-size: 72px; line-height: 1.5; font-weight: 600; color: #fff; text-transform: uppercase; }
.hero .sub { font-size: 24px; line-height: 36px; font-weight: 400; color: #fff; margin-top: 4px; }
.hero-page { min-height: 360px; }
.hero-home { min-height: 683px; padding: 200px 40px; }
.hero-home h1 { line-height: 72px; text-transform: uppercase; max-width: 805px; margin-bottom: 6px; }
.hero-home .btn { width: 300px; margin-top: 37px; }

/* ---------- Content rows (25px gutter like the original) ---------- */
.row { padding: 25px; }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-text { padding: 50px 50px 100px; }
.split-inner .split-text { padding: 72px 50px 110px; }
.split-img { background-size: cover; background-position: center; margin-left: 17px; min-height: 300px; }
.badge { width: 111px; height: 111px; margin-bottom: 22px; }
.box-gray { background: var(--light); padding: 52px 50px 60px; }

/* Navy "Our Inspection Services" box */
.services-box { display: grid; grid-template-columns: 469fr 657fr; min-height: 735px; }
.services-box .img { background-size: cover; background-position: center; }
.services-box .body { background: var(--navy); color: #fff; padding: 50px; }
.services-box h3 { color: #fff; }
.services-box p { margin-bottom: 0; }
.services-box ul { margin: 0 0 24px; padding-left: 40px; }
.services-box .btn { margin-top: 12px; }

/* What To Look For list: only the "See The List!" bar is shaded; the list drops below it */
.buy-list { padding-bottom: 50px; }
.buy-list h3 { margin-bottom: 10px; }
.buy-cols { display: grid; grid-template-columns: 599fr 428fr; align-items: start; }
.buy-list summary { font-family: var(--head); font-size: 24px; line-height: 36px; font-weight: 600; color: var(--blue); background: var(--light-2); padding: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.buy-list summary::-webkit-details-marker { display: none; }
.buy-list summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 10l4.5 4.5 4.5-4.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center/24px no-repeat; transition: transform .2s; }
.buy-list details[open] summary::after { transform: rotate(180deg); }
.buy-list ul { margin: 0; padding: 16px 16px 16px 56px; }
.buy-btn { display: flex; justify-content: flex-end; padding-left: 15px; }

/* Google reviews */
.reviews { padding-top: 50px; }
.reviews-title { font-size: 24px; line-height: 36px; font-weight: 600; color: var(--blue-light); margin: 2px 0 14px; }

/* Three photo cards: equal columns filling the row, photo as the background */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; align-items: center; justify-content: center; height: 460px; padding: 75px 15px; text-align: center; text-decoration: none; background-size: cover; background-position: center; overflow: hidden; }
.card:nth-child(3) { background-position: center top; }
.card::before { content: ""; position: absolute; inset: 0; background: rgba(21, 46, 92, .65); transition: background .25s; }
.card:hover::before, .card:focus-visible::before { background: rgba(21, 46, 92, .8); }
.card span { position: relative; font-family: var(--head); font-size: 36px; line-height: 1.6; font-weight: 700; color: #fff; }

/* Call-to-action box at the bottom of inner pages */
.cta-box { position: relative; min-height: 300px; padding: 52px 50px 50px; background-size: cover; background-position: center; color: #fff; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.cta-box > * { position: relative; }
.cta-box h3 { color: #fff; margin-bottom: 14px; }

.cta-box .btn { display: flex; margin-top: 27px; }

/* Generic boxed sections used by About, Contact, Inspectors, Blog, Service Areas */
.section { padding: 25px; }

.section > .container { padding: 50px; }
.section-light > .container { background: var(--light); }
.section h2 { font-size: 36px; line-height: 54px; font-weight: 600; color: var(--ink); margin-bottom: 19px; }
.section h3 { font-size: 24px; line-height: 36px; margin-bottom: 8px; }
.section .split { gap: 50px; align-items: start; }

/* Two gray boxes side by side (About, Contact) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.row-follow { padding-top: 0; }

/* Contact page */
.hero-contact { min-height: 586px; padding-top: 150px; padding-bottom: 150px; }
.hero-contact h1 { line-height: 1.5; margin: -17px 0 -18px; }
.hero-text { max-width: 586px; margin: 40px 0 26px; color: #fff; }
.hero-social-label { margin: 0; line-height: 22px; color: #fff; }
.hero-social { display: flex; gap: 14px; margin-top: 3px; }
.hero-social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 34px; }
.hero-social svg { width: 22px; height: 22px; fill: #fff; }
.row-people { padding-bottom: 0; }
.person { padding: 50px; }
.person h3 { margin-bottom: 4px; }
.person .bio-role { margin-bottom: 20px; }
.person p { margin: 0; }
.person p a { color: var(--ink); text-decoration: none; }
.person p a:hover { color: var(--blue); }
.btn-schedule { width: 300px; max-width: 100%; margin-top: 28px; }
.row-form { padding-top: 50px; padding-bottom: 50px; }
.row-form h3 { margin-bottom: 28px; }

/* Forms (measured from the original booking forms) */
.contact-form { display: grid; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; height: 40px; padding: 0 10px; font: 13px var(--body); color: #000; background: #f3f4f6; border: 0; border-radius: 0; }
.contact-form textarea { height: 80px; padding: 10px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--orange); }
.contact-form label { display: grid; gap: 3px; font-size: 15px; line-height: 23px; color: var(--ink); }
.form-submit { width: 273px; max-width: 100%; min-height: 47px; }
.form-status { font-family: var(--head); margin: 0; }
.form-status:empty { display: none; }

/* Booking pages (/dan-quinn, /bill-mcquillan) */
.booking { padding: 20px 5px 40px 22px; }
.booking h3 { margin-bottom: 40px; }
.booking-form label { margin-top: -3px; }
.booking-form .span-6:has(> .form-submit) { margin-top: 9px; }
.booking-form { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 30px; padding: 0 15px; }
.booking-form .span-6 { grid-column: span 6; }
.booking-form .span-3 { grid-column: span 3; }
.booking-form .span-2 { grid-column: span 2; }
.booking-form .form-submit { margin-left: 5px; }

/* Service areas */
.areas ul { margin: 0; padding-left: 32px; }
.areas li { margin-bottom: 24px; }
.areas li:last-child { margin-bottom: 0; }
.map { display: block; width: calc(100% - 25px); height: 375px; border: 0; }

/* Blog list */
.blog-list { padding-top: 50px; padding-bottom: 50px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
.post-list .post-card { margin-right: 20px; }
.post-card { background: #fff; border-radius: 4px; box-shadow: 0 3px 11px rgba(0,0,0,.25); overflow: hidden; }
.post-card .pc-img { display: block; height: 139px; background-size: cover; background-position: center; }
.post-card .pc-body { padding: 15px 15px 23px; }
.post-card h3 { display: flex; align-items: center; min-height: 55px; font-size: 18px; line-height: 27px; font-weight: 700; margin: 0 0 15px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }

.post-card .desc { font-size: 15px; line-height: 21px; color: #747474; margin: 0; }

/* Blog post */
.post-hero { background: var(--navy); padding: 150px 50px 30px; }
.post-hero h1 { font-size: 72px; line-height: 1.57; font-weight: 600; color: #fff; text-transform: uppercase; }
.post-body { padding: 30px 50px 30px; overflow-wrap: anywhere; }
.post-sub { font-weight: 400; margin-bottom: 15px; }
.post-body ol { padding-left: 1.4em; margin: 0 0 24px; }
.post-body li { margin-bottom: 24px; }
.post-body figure { margin: 0 0 24px; }
.post-body .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.post-body .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-body a { color: var(--navy); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; }
.post-nav a { text-decoration: none; }
.post-nav a + a, .post-nav span + a { text-align: right; }
.post-share { display: flex; justify-content: center; align-items: center; gap: 15px; min-height: 68px; padding: 15px 50px; }
.post-share a { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 26px; padding: 0 10px; font: 12px Arial, sans-serif; color: #626262; text-decoration: none; border: 1px solid #ddd; border-radius: 3px; }
.post-share a:hover { background: var(--light); }
.post-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 45px 50px 40px; }
.related-card img { width: 100%; height: 152px; object-fit: cover; }
.related-card h3 { margin: 33px 0 0; }
.related-card h3 a { color: var(--ink); text-decoration: none; }

/* Inspectors page bio box (measured from the original) */
.bio-box { display: grid; grid-template-columns: 1fr 3fr; background: var(--light); }
.bio-photo { background-size: contain; background-position: left center; background-repeat: no-repeat; min-height: 300px; }
.bio-text { padding: 50px 50px 50px 25px; }
.bio-text h3 { margin-bottom: 14px; }
.bio-role { font-size: 24px; line-height: 36px; font-weight: 600; color: var(--blue-light); margin-bottom: 19px; }
.bio-text > p { margin-bottom: 12px; }
.readmore summary { font-family: var(--head); font-size: 18px; line-height: 27px; font-weight: 400; color: #000; background: var(--light-2); padding: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 10l4.5 4.5 4.5-4.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center/24px no-repeat; transition: transform .2s; }
.readmore[open] summary::after { transform: rotate(180deg); }
.readmore p { padding: 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 3fr 4fr 5fr; padding: 50px 40px 25px; }
.footer-grid > div { padding-right: 16px; min-height: 132px; }
.site-footer h4 { font-size: 24px; line-height: 36px; font-weight: 600; color: var(--blue-light); margin: 2px 0 4px; }
.site-footer p { margin: 0 0 0; }
.site-footer a { color: #fff; }
.site-footer a[href^="tel"] { text-decoration: none; }
.social { display: flex; gap: 14px; margin-top: 2px; }
.social a { display: inline-flex; align-items: flex-start; justify-content: center; width: 30px; height: 35px; padding-top: 5px; }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { padding: 27px 40px 60px; font-size: 12px; line-height: 18px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card span { font-size: 28px; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  h3, .section h2 { font-size: 28px; line-height: 40px; }
  .hero { padding: 70px 20px; }
  .hero-page { min-height: 0; }
  .hero-home { min-height: 520px; padding: 110px 20px; }
  .hero h1 { font-size: 40px; line-height: 1.25; }
  .hero-home h1 { line-height: 46px; }
  .hero .sub { font-size: 20px; line-height: 30px; }
  .hero-home .btn { width: 100%; max-width: 300px; }
  .row, .section { padding: 16px; }
  .split, .services-box, .buy-cols, .section .split, .pair, .post-related { grid-template-columns: minmax(0, 1fr); }
  .booking-form .span-3, .booking-form .span-2 { grid-column: span 6; }
  .hero-contact { min-height: 0; padding-top: 70px; padding-bottom: 70px; }
  .person { padding: 28px 20px; }
  .post-hero { padding: 90px 20px 24px; }
  .post-hero h1 { font-size: 40px; line-height: 1.3; }
  .post-body, .post-related { padding-left: 20px; padding-right: 20px; }
  .post-share { flex-wrap: wrap; padding: 15px 20px; }
  .split-text { padding: 30px 10px 40px; }
  .split-img { margin-left: 0; min-height: 260px; }
  .services-box { min-height: 0; }
  .services-box .img { min-height: 260px; }
  .services-box .body, .box-gray, .cta-box, .section > .container { padding: 28px 20px; }
  .buy-btn { justify-content: flex-start; padding: 20px 0 0; }
  .cards { grid-template-columns: 1fr; }
  .card { height: 300px; }
  .post-list { grid-template-columns: 1fr; }
  .bio-box { grid-template-columns: minmax(0, 1fr); }
  .bio-photo { min-height: 260px; background-position: center; }
  .bio-text { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 20px 20px; }
  .footer-bottom { padding: 20px 20px 40px; }
}

/* On wide screens the original caps these sections' content at 1200px and centers it
   (banner text, gray boxes, reviews, footer); photo rows stay full width. */
.hero { padding-left: max(40px, calc((100% - 1200px) / 2)); padding-right: max(40px, calc((100% - 1200px) / 2)); }
.row-narrow, .section { padding-left: max(25px, calc((100% - 1200px) / 2)); padding-right: max(25px, calc((100% - 1200px) / 2)); }
.footer-grid, .footer-bottom { padding-left: max(40px, calc((100% - 1200px) / 2)); padding-right: max(40px, calc((100% - 1200px) / 2)); }
@media (max-width: 767px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .row-narrow, .section { padding-left: 16px; padding-right: 16px; }
  .footer-grid, .footer-bottom { padding-left: 20px; padding-right: 20px; }
}
.about-includes { margin: 3px 0 9px; }

/* Keeps elements that slide in from the right from causing a sideways scrollbar */
.page { overflow-x: clip; }

/* Sidebar menu hover, as on the original: text turns blue and bold, and a light-blue
   underline sweeps in from the left */
@media (min-width: 1151px) {
  .main-nav > ul > li > a, .main-nav .sub-row > a, .main-nav > ul > li > .sub-toggle {
    background: linear-gradient(var(--blue-light), var(--blue-light)) left calc(100% - 3px) / 0 2px no-repeat;
    transition: background-size .3s ease, color .2s;
  }
  .main-nav > ul > li > a:hover, .main-nav .sub-row > a:hover, .main-nav > ul > li > .sub-toggle:hover,
  .main-nav > ul > li > a[aria-current="page"], .main-nav .sub-row > a[aria-current="page"] {
    color: var(--blue); font-weight: 700; background-size: 100% 2px; text-decoration: none;
  }
  .main-nav .sub-row { padding: 0; }
  .main-nav .sub-row > a { padding: 6px 0; }
}
.footer-addr { max-width: 212px; }
.footer-il { margin-top: 12px !important; } /* collapses with the heading's 4px margin, giving the original's 8px extra offset */
@media (max-width: 767px) { .footer-grid > div { min-height: 0; } }
.post-sub-strong { font-weight: 600; }
.related-desc { font-size: 16px; line-height: 22.4px; margin: 16px 0 0; }
