/*
Theme Name: Safety Home Inspectors
Author: Custom Client Theme
Description: A lightweight, responsive WordPress theme for Safety Home Inspectors, featuring inspection pricing, service information, contact calls-to-action, and a scalable Safety Shop page.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: safety-home-inspectors
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-logo, custom-menu, featured-images, accessibility-ready
*/

:root {
  --navy: #0b2341;
  --navy-2: #13385f;
  --orange: #f26122;
  --orange-dark: #d94d13;
  --sky: #dff2ff;
  --cream: #fffaf3;
  --white: #ffffff;
  --ink: #142033;
  --muted: #5f6d7d;
  --line: #dfe6ee;
  --shadow: 0 18px 55px rgba(11, 35, 65, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tint { background: #f6f9fc; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 99px; background: var(--orange); }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.07; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); max-width: 760px; }
h2 { font-size: clamp(2.25rem, 4vw, 3.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.75; }
.section-heading { max-width: 730px; margin-bottom: 42px; }
.section-heading .lead { margin-top: 18px; }
.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .nav-link:focus-visible, .menu-toggle:focus-visible { outline: 3px solid #6bbcff; outline-offset: 3px; }
.btn-primary { color: #fff; background: var(--orange); box-shadow: 0 10px 24px rgba(242, 97, 34, .28); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 14px 30px rgba(242, 97, 34, .34); }
.btn-dark { color: #fff; background: var(--navy); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { color: #fff; background: var(--navy); }
.btn-light { color: var(--navy); background: #fff; }
.topbar { color: #fff; background: var(--navy); font-size: .92rem; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }
.promo-pill { display: flex; align-items: center; gap: 9px; }
.promo-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 97, 34, .18); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(11,35,65,.08); backdrop-filter: blur(14px); }
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; }
.brand-name { font-size: 1rem; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
.brand-name small { display: block; margin-top: 4px; color: var(--orange-dark); font-size: .68rem; letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { position: relative; color: var(--navy); font-size: .92rem; font-weight: 750; text-decoration: none; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; transform: scaleX(0); background: var(--orange); transition: transform .2s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: #fff; font-size: 1.4rem; }
.hero { position: relative; overflow: hidden; padding: 72px 0 86px; background: linear-gradient(120deg, #f6fbff 0%, #fff 58%, #fff7ef 100%); }
.hero::before { content: ""; position: absolute; width: 500px; height: 500px; left: -260px; bottom: -300px; border-radius: 50%; background: var(--sky); opacity: .7; }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 56px; }
.hero-copy .lead { max-width: 630px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .93rem; font-weight: 700; }
.check::before { content: "✓"; display: inline-grid; width: 22px; height: 22px; place-items: center; margin-right: 7px; border-radius: 50%; color: #fff; background: var(--orange); font-size: .76rem; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 22px -20px -20px 35px; border-radius: 30px; background: var(--orange); opacity: .18; transform: rotate(2deg); }
.hero-art img { position: relative; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.price-tag { position: absolute; right: -18px; bottom: 26px; z-index: 2; width: 176px; padding: 16px 18px; border: 5px solid #fff; border-radius: 18px; color: #fff; background: var(--navy); box-shadow: var(--shadow); transform: rotate(-2deg); }
.price-tag strong { display: block; font-size: 2rem; line-height: 1; }
.price-tag span { display: block; margin-top: 7px; font-size: .78rem; line-height: 1.35; }
.proof-strip { position: relative; z-index: 3; margin-top: -1px; color: #fff; background: var(--navy); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { padding: 28px 30px; border-right: 1px solid rgba(255,255,255,.16); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; color: #fff; font-size: 1.55rem; line-height: 1.1; }
.proof-item span { color: #c5d1df; font-size: .92rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 235px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #f7a27a; box-shadow: 0 18px 40px rgba(11,35,65,.1); }
.icon-tile { display: inline-grid; width: 48px; height: 48px; place-items: center; margin-bottom: 20px; border-radius: 14px; color: #fff; background: var(--orange); font-size: 1.35rem; font-weight: 900; }
.service-card p { margin-top: 12px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.feature-image { position: relative; }
.feature-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-image::after { content: "Local service • Yucaipa, CA"; position: absolute; left: 20px; bottom: 20px; padding: 10px 16px; border-radius: 999px; color: #fff; background: rgba(11,35,65,.9); font-size: .82rem; font-weight: 750; }
.feature-copy .lead { margin-top: 20px; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 32px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 12px 12px 12px 42px; border-radius: 12px; color: var(--navy); background: #edf6fc; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 13px; top: 12px; color: var(--orange-dark); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; }
.pricing-card { position: relative; overflow: hidden; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 35px rgba(11,35,65,.07); }
.pricing-card.featured { color: #fff; border-color: var(--navy); background: var(--navy); }
.pricing-card.featured h3, .pricing-card.featured .price { color: #fff; }
.pricing-card .flag { display: inline-block; margin-bottom: 16px; padding: 6px 11px; border-radius: 999px; color: var(--orange-dark); background: #fff0e8; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.pricing-card.featured .flag { color: #fff; background: var(--orange); }
.price { margin: 18px 0 6px; color: var(--navy); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.pricing-card p { color: var(--muted); }
.pricing-card.featured p { color: #c7d5e5; }
.pricing-card .btn { margin-top: 24px; }
.fine-print { margin-top: 18px; color: var(--muted); font-size: .88rem; }
.referral { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-top: 28px; padding: 28px 30px; border-radius: 20px; color: #fff; background: linear-gradient(115deg, var(--orange), #fb7d37); }
.referral-badge { font-size: 2.7rem; font-weight: 950; line-height: 1; }
.referral h3, .referral p { color: #fff; }
.shop-band { overflow: hidden; background: var(--cream); }
.shop-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; }
.shop-copy .lead { margin-top: 18px; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.shop-image { position: relative; }
.shop-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.shop-image::before { content: "Safety + Smart Home"; position: absolute; z-index: 2; right: -15px; top: -18px; padding: 11px 16px; border-radius: 12px; color: #fff; background: var(--navy); font-size: .82rem; font-weight: 850; transform: rotate(3deg); }
.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; border-radius: 30px; color: #fff; background: var(--navy); }
.contact-copy { padding: 58px; }
.contact-copy h2, .contact-copy h3 { color: #fff; }
.contact-copy .lead { margin-top: 18px; color: #c5d2df; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.person { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.06); }
.person strong { display: block; font-size: 1.1rem; }
.person a { display: block; margin-top: 4px; color: #fff; font-weight: 700; text-decoration: none; }
.contact-side { display: flex; flex-direction: column; justify-content: center; padding: 42px; color: var(--navy); background: var(--sky); }
.contact-side h3 { font-size: 1.75rem; }
.contact-side .btn { margin-top: 20px; }
.area-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.area-list span { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: .82rem; font-weight: 750; }
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 23px 46px 23px 0; color: var(--navy); font-size: 1.08rem; font-weight: 850; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 17px; color: var(--orange); font-size: 1.65rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }
.footer { padding: 54px 0 24px; color: #b9c7d6; background: #07192d; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 50px; }
.footer .brand { color: #fff; }
.footer p { max-width: 430px; margin-top: 17px; }
.footer h3 { margin-bottom: 16px; color: #fff; font-size: .95rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #d0dae5; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .83rem; }

/* Shop page */
.page-hero { padding: 72px 0; background: linear-gradient(135deg, var(--navy), #174873); color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 58px; }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 5vw, 5rem); }
.page-hero .lead { max-width: 650px; margin-top: 22px; color: #d3dfeb; }
.page-hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 8px solid rgba(255,255,255,.13); border-radius: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { display: flex; min-height: 290px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(11,35,65,.06); }
.product-card .number { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 34px; border-radius: 50%; color: #fff; background: var(--orange); font-weight: 900; }
.product-thumb { margin: -28px -28px 24px; overflow: hidden; aspect-ratio: 4/3; border-radius: 22px 22px 0 0; background: #edf2f7; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card p { margin: 14px 0 22px; color: var(--muted); }
.product-card .btn { margin-top: auto; align-self: flex-start; }
.store-note { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 22px 25px; border-radius: 16px; background: #eaf6ff; }
.store-note strong { color: var(--navy); }

@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 126px 20px auto; display: none; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links .btn { width: 100%; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-grid, .feature-grid, .shop-grid, .contact-panel, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .services-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-side { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 26px, 1160px); }
  .section { padding: 72px 0; }
  .topbar-inner { min-height: 50px; justify-content: center; }
  .topbar-contact { display: none; }
  .nav { min-height: 76px; }
  .nav-links { inset: 126px 13px auto; }
  .hero { padding: 54px 0 72px; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .hero-actions .btn, .shop-actions .btn { width: 100%; }
  .price-tag { right: 8px; bottom: -18px; }
  .proof-grid, .services-grid, .pricing-grid, .product-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .proof-item:last-child { border-bottom: 0; }
  .check-list { grid-template-columns: 1fr; }
  .referral { grid-template-columns: 1fr; }
  .referral .btn { justify-self: start; }
  .people { grid-template-columns: 1fr; }
  .contact-copy, .contact-side { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > :first-child { grid-column: auto; }
  .page-hero { padding: 52px 0 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* WordPress integration */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 14px 18px;
  clip: auto;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
}
.custom-logo { width: auto; max-width: 170px; max-height: 54px; }
.nav-menu-list { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav-menu-list a { position: relative; color: var(--navy); font-size: .92rem; font-weight: 750; text-decoration: none; }
.nav-menu-list a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; transform: scaleX(0); background: var(--orange); transition: transform .2s ease; }
.nav-menu-list a:hover::after, .nav-menu-list .current-menu-item > a::after { transform: scaleX(1); }
.admin-bar .header { top: 32px; }
.content-shell { width: min(900px, calc(100% - 40px)); margin-inline: auto; padding: 84px 0; }
.content-shell > * + * { margin-top: 1.2em; }
.content-shell h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.content-shell h2, .content-shell h3 { margin-top: 1.5em; }
.content-shell img { height: auto; border-radius: 18px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.alignwide { width: min(1160px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 960px) {
  .nav-menu-list { display: grid; gap: 18px; }
}
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
