@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ip-navy: #09223f;
  --ip-navy-deep: #061629;
  --ip-navy-soft: #143653;
  --ip-green: #79b72a;
  --ip-green-bright: #92cf3e;
  --ip-lime-pale: #eaf4d9;
  --ip-cream: #f5f2e9;
  --ip-paper: #fffdf8;
  --ip-text: #12263a;
  --ip-muted: #667482;
  --ip-line: rgba(9, 34, 63, .13);
  --ip-line-light: rgba(255,255,255,.14);
  --ip-radius: 18px;
  --ip-radius-lg: 30px;
  --ip-shadow: 0 24px 80px rgba(6, 22, 41, .14);
  --ip-header-h: 82px;
  --ip-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ip-display: "Manrope", var(--ip-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ip-site { margin: 0; background: var(--ip-paper); color: var(--ip-text); font-family: var(--ip-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.ip-menu-open { overflow: hidden; }
body.ip-site h1,
body.ip-site h2,
body.ip-site h3 { margin: 0; color: var(--ip-navy-deep); font-family: var(--ip-display); letter-spacing: -.045em; line-height: 1.04; }
body.ip-site p { margin-top: 0; }
body.ip-site img { max-width: 100%; }
.ip-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.ip-skip { position: fixed; top: -80px; left: 16px; z-index: 3000; padding: 12px 18px; border-radius: 8px; background: #fff; color: #000; }
.ip-skip:focus { top: 12px; }

/* Homepage header */
.ip-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--ip-header-h); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(5, 20, 37, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .25s ease, box-shadow .25s ease; }
.ip-header.scrolled { background: rgba(5,20,37,.98); box-shadow: 0 12px 38px rgba(0,0,0,.18); }
.ip-header-inner { width: min(1400px, calc(100% - 40px)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 26px; }
.ip-brand { flex: 0 0 auto; display: block; padding: 7px 12px; border-radius: 11px; background: #fff; }
.ip-brand img { display: block; width: 178px; height: auto; }
.ip-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.ip-nav a { padding: 10px 11px; border-radius: 999px; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.ip-nav a:hover,
.ip-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.ip-nav .ip-nav-cta { margin-left: 8px; padding: 12px 17px; background: var(--ip-green); color: var(--ip-navy-deep); }
.ip-nav .ip-nav-cta.active { background: var(--ip-green); color: var(--ip-navy-deep); }
.ip-nav .ip-nav-cta:hover { background: var(--ip-green-bright); color: var(--ip-navy-deep); }
.ip-nav-cta i { margin-left: 7px; font-size: 10px; }
.ip-header-phone { display: grid; flex: 0 0 auto; color: #fff; line-height: 1.15; text-decoration: none; }
.ip-header-phone small { color: var(--ip-green-bright); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ip-header-phone strong { margin-top: 4px; font-size: 13px; }
.ip-menu-toggle { position: relative; z-index: 1002; display: none; width: 46px; height: 46px; margin-left: auto; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.ip-menu-toggle span { width: 21px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }

/* Shared homepage controls */
.ip-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--ip-green-bright); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.ip-eyebrow > span { width: 34px; height: 1px; background: currentColor; }
.ip-eyebrow-dark { color: #568c17; }
.ip-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.ip-button:hover { transform: translateY(-2px); }
.ip-button-green { background: var(--ip-green); color: var(--ip-navy-deep); box-shadow: 0 14px 34px rgba(121,183,42,.22); }
.ip-button-green:hover { background: var(--ip-green-bright); color: var(--ip-navy-deep); }
.ip-button-quiet { border-color: rgba(255,255,255,.34); color: #fff; }
.ip-button-quiet:hover { background: rgba(255,255,255,.1); color: #fff; }
.ip-text-link { display: inline-flex; align-items: center; gap: 13px; color: var(--ip-navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.ip-text-link i { transition: transform .2s; }
.ip-text-link:hover i { transform: translateX(5px); }

/* Hero */
.ip-hero { position: relative; height: 92vh; min-height: 750px; max-height: 940px; overflow: hidden; background: var(--ip-navy-deep); }
.ip-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.ip-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,18,34,.94) 0%, rgba(4,18,34,.78) 36%, rgba(4,18,34,.22) 70%, rgba(4,18,34,.08) 100%), linear-gradient(0deg, rgba(4,18,34,.22), transparent 42%); }
.ip-hero-inner { position: relative; z-index: 1; height: 100%; padding-top: calc(var(--ip-header-h) + 9vh); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
body.ip-site .ip-hero h1 { max-width: 820px; color: #fff; font-size: clamp(48px, 6vw, 84px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.ip-hero h1 em { color: var(--ip-green-bright); font-style: normal; }
.ip-hero-lede { max-width: 650px; margin: 50px 0 34px; color: rgba(255,255,255,.76); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; }
.ip-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ip-hero-proof { display: flex; flex-wrap: wrap; gap: 24px; margin: 36px 0 0; padding: 0; color: rgba(255,255,255,.72); list-style: none; font-size: 13px; }
.ip-hero-proof li { display: flex; align-items: center; gap: 8px; }
.ip-hero-proof i { color: var(--ip-green-bright); }

.ip-service-strip { background: var(--ip-green); color: var(--ip-navy-deep); }
.ip-service-strip-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ip-service-strip p { margin: 0; font-size: 12px; }
.ip-service-strip p:last-child { max-width: 600px; text-align: right; }

/* Homepage sections */
.ip-section { padding: 118px 0; }
.ip-section-heading h2 { font-size: clamp(40px, 5vw, 68px); font-weight: 500; }
.ip-split-heading { margin-bottom: 52px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 70px; }
.ip-split-heading > p { max-width: 440px; margin-bottom: 7px; color: var(--ip-muted); font-size: 17px; }
.ip-problems { background: var(--ip-paper); }
.ip-problem-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, 325px); gap: 18px; }
.ip-problem-card { position: relative; min-height: 0; overflow: hidden; border-radius: var(--ip-radius); background: var(--ip-navy); }
.ip-problem-featured { grid-row: 1 / 3; }
.ip-problem-card > a { position: absolute; inset: 0; color: #fff; text-decoration: none; }
.ip-problem-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ip-problem-featured img { object-position: 50% center; }
.ip-problem-card:hover img { transform: scale(1.035); }
.ip-card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,18,34,.9), rgba(4,18,34,.02) 68%); }
.ip-card-index { position: absolute; left: 25px; top: 22px; color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .14em; }
.ip-card-copy { position: absolute; left: 28px; right: 70px; bottom: 26px; display: grid; }
.ip-card-copy small { margin-bottom: 5px; color: var(--ip-green-bright); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ip-card-copy strong { font-family: var(--ip-display); font-size: clamp(23px, 2.6vw, 37px); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.ip-card-copy > span { max-width: 430px; margin-top: 8px; color: rgba(255,255,255,.72); font-size: 13px; }
.ip-problem-card:not(.ip-problem-featured) .ip-card-copy > span { display: none; }
.ip-card-arrow { position: absolute; right: 26px; bottom: 29px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; font-size: 13px; transition: background .2s, color .2s; }
.ip-problem-card:hover .ip-card-arrow { border-color: var(--ip-green); background: var(--ip-green); color: var(--ip-navy-deep); }
.ip-quick-links { margin-top: 20px; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--ip-line); border-radius: 14px; background: #fff; }
.ip-quick-links a { padding: 18px 12px; border-right: 1px solid var(--ip-line); color: var(--ip-navy); font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.ip-quick-links a:last-child { border-right: 0; }
.ip-quick-links i { margin-right: 6px; color: var(--ip-green); font-size: 8px; }

.ip-approach { background: var(--ip-navy); color: rgba(255,255,255,.73); }
.ip-approach-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(55px, 8vw, 110px); }
body.ip-site .ip-approach h2 { color: #fff; font-size: clamp(42px, 5vw, 67px); font-weight: 500; }
.ip-lead { margin: 27px 0 30px; font-size: 17px; }
.ip-process { margin: 0 0 34px; padding: 0; list-style: none; }
.ip-process li { padding: 20px 0; border-top: 1px solid var(--ip-line-light); display: grid; grid-template-columns: 42px 1fr; gap: 18px; }
.ip-process li > span { color: var(--ip-green-bright); font-size: 11px; letter-spacing: .14em; }
.ip-process strong { display: block; color: #fff; font-family: var(--ip-display); font-size: 18px; }
.ip-process p { margin: 5px 0 0; font-size: 14px; }
.ip-approach .ip-text-link { color: #fff; }
.ip-trust-visual { position: relative; }
.ip-trust-visual > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: var(--ip-radius-lg); box-shadow: var(--ip-shadow); }
.ip-trust-note { position: absolute; left: -34px; bottom: 34px; width: 270px; padding: 21px 23px; border-radius: 14px; background: var(--ip-green); color: var(--ip-navy-deep); box-shadow: var(--ip-shadow); }
.ip-trust-note strong { display: block; font-family: var(--ip-display); font-size: 16px; }
.ip-trust-note span { display: block; margin-top: 5px; font-size: 12px; }

.ip-difference { background: var(--ip-cream); }
.ip-difference-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.ip-difference h2 { font-size: clamp(40px, 5vw, 62px); font-weight: 500; }
.ip-difference-grid > div:first-child > p:last-child { max-width: 400px; margin-top: 24px; color: var(--ip-muted); font-size: 17px; }
.ip-value-list { border-top: 1px solid var(--ip-line); }
.ip-value-list article { padding: 27px 0; border-bottom: 1px solid var(--ip-line); display: grid; grid-template-columns: 54px 1fr; gap: 20px; }
.ip-value-list i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ip-lime-pale); color: #568c17; }
.ip-value-list strong { display: block; color: var(--ip-navy); font-family: var(--ip-display); font-size: 18px; }
.ip-value-list p { margin: 5px 0 0; color: var(--ip-muted); font-size: 14px; }

.ip-review-section { padding: 90px 0; background: var(--ip-paper); }
.ip-review-grid { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 70px; }
.ip-review-mark { display: grid; color: var(--ip-green); }
.ip-review-mark i { margin-bottom: 15px; font-size: 30px; }
.ip-review-mark span { color: var(--ip-navy); font-family: var(--ip-display); font-size: 48px; font-weight: 600; letter-spacing: -.05em; }
.ip-review-mark small { color: var(--ip-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.ip-review-grid blockquote { margin: 0; padding-left: 60px; border-left: 1px solid var(--ip-line); }
.ip-review-grid blockquote p { margin: 0; color: var(--ip-navy); font-family: var(--ip-display); font-size: clamp(25px, 3vw, 38px); line-height: 1.35; letter-spacing: -.035em; }
.ip-review-grid blockquote footer { margin-top: 20px; color: var(--ip-muted); font-size: 13px; }

.ip-cta-section { position: relative; overflow: hidden; padding: 110px 0; background: var(--ip-navy-deep); color: #fff; }
.ip-cta-section::before { content: ""; position: absolute; right: -160px; top: -270px; width: 650px; height: 650px; border: 1px solid rgba(121,183,42,.25); border-radius: 50%; box-shadow: 0 0 0 75px rgba(121,183,42,.035), 0 0 0 150px rgba(121,183,42,.025); }
.ip-cta-inner { position: relative; z-index: 1; text-align: center; }
.ip-cta-inner .ip-eyebrow { justify-content: center; }
body.ip-site .ip-cta-inner h2 { color: #fff; font-size: clamp(44px, 6vw, 74px); font-weight: 500; }
.ip-cta-inner > p { max-width: 600px; margin: 24px auto 30px; color: rgba(255,255,255,.68); font-size: 17px; }
.ip-cta-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; }
.ip-call-link { color: #fff; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.ip-cta-inner > small { display: block; max-width: 780px; margin: 28px auto 0; color: rgba(255,255,255,.5); }

/* Homepage footer */
.ip-footer { background: #04111f; color: rgba(255,255,255,.66); }
.ip-footer-main { padding: 68px 0 50px; display: grid; grid-template-columns: 1.35fr .75fr .65fr 1.1fr; gap: 46px; }
.ip-footer-brand img { width: 190px; padding: 8px 12px; border-radius: 10px; background: #fff; }
.ip-footer-brand p { max-width: 300px; margin: 17px 0 0; font-size: 13px; }
.ip-footer-column { display: grid; align-content: start; gap: 8px; }
.ip-footer-column small { margin-bottom: 8px; color: var(--ip-green-bright); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ip-footer-column a { color: rgba(255,255,255,.72); font-size: 13px; text-decoration: none; }
.ip-footer-column a:hover { color: #fff; }
.ip-footer-column p { margin: 6px 0 0; font-size: 12px; }
.ip-footer-base { min-height: 68px; border-top: 1px solid var(--ip-line-light); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.ip-footer-base p { margin: 0; font-size: 11px; }

/* Existing inner pages: shared polish without changing their SEO content */
body:not(.ip-site) { background: var(--ip-paper) !important; color: var(--ip-text) !important; font-family: var(--ip-body) !important; -webkit-font-smoothing: antialiased; }
body:not(.ip-site) h1,
body:not(.ip-site) h2,
body:not(.ip-site) h3,
body:not(.ip-site) h4 { font-family: var(--ip-display) !important; letter-spacing: -.035em; }
body:not(.ip-site) .navbar { position: relative; z-index: 1000; min-height: 82px; padding: 12px 0 !important; background: rgba(255,255,255,.97) !important; box-shadow: 0 8px 28px rgba(9,34,63,.08) !important; }
body:not(.ip-site) .navbar-brand img { width: 180px !important; height: auto !important; }
body:not(.ip-site) .nav-link { margin: 0 4px !important; padding: 9px 10px !important; border-radius: 999px; color: var(--ip-navy) !important; font-size: 13px; font-weight: 600 !important; }
body:not(.ip-site) .nav-link:hover { background: var(--ip-lime-pale); color: #426f11 !important; }
body:not(.ip-site) .nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 12px 17px !important; border-radius: 999px !important; background: var(--ip-green) !important; color: var(--ip-navy-deep) !important; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
body:not(.ip-site) .contact-info a { color: var(--ip-navy) !important; font-size: 13px; }
body.ip-inner-site .ip-inner-header { position: sticky; top: 0; }
body.ip-inner-site .ip-inner-header + .hero-section { margin-top: 0 !important; }
body:not(.ip-site) .hero-section { position: relative; min-height: 480px !important; padding: 90px 0 !important; background-position: center !important; overflow: hidden; }
body.ip-inner-site .hero-section { background-image: url("../../images/hero-home-protection-v2.webp") !important; background-size: cover !important; }
body.ip-page-insect-control .hero-section { background-image: url("../../images/service-pest-inspection-v2.webp") !important; }
body.ip-page-rodent-control .hero-section,
body.ip-page-rodent-control-hillsboro-or .hero-section { background-image: url("../../images/service-rodent-exclusion-v2.webp") !important; }
body.ip-page-gallery .hero-section { background-image: url("../../images/Instinct-Pest-01-1920w.webp") !important; }
body:not(.ip-site) .hero-section::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(4,18,34,.94) 0%, rgba(4,18,34,.76) 47%, rgba(4,18,34,.18) 100%); }
body:not(.ip-site) .hero-section .container { position: relative; z-index: 1; }
body:not(.ip-site) .hero-content { max-width: 900px !important; text-align: left !important; }
body:not(.ip-site) .hero-section .hero-title { color: #fff !important; font-size: clamp(40px, 6vw, 68px) !important; font-weight: 600 !important; text-shadow: none !important; }
body:not(.ip-site) .hero-section p { max-width: 780px; margin-top: 25px; color: rgba(255,255,255,.8) !important; font-size: 17px; line-height: 1.75; }
body:not(.ip-site) .about-section .hero-title,
body:not(.ip-site) .pest-control-section .hero-title { color: var(--ip-navy) !important; font-size: clamp(34px, 5vw, 54px) !important; line-height: 1.08 !important; }
body.ip-inner-site .about-section .hero-title { color: #fff !important; }
body.ip-inner-site .about-section .about-content > p { color: rgba(255,255,255,.82) !important; }
body:not(.ip-site) .unique-approach-section .hero-title { color: #fff !important; }
body:not(.ip-site) .cta-button { display: inline-flex !important; align-items: center; gap: 9px; padding: 14px 22px !important; border: 0 !important; border-radius: 999px !important; outline: 0 !important; background: var(--ip-green) !important; color: var(--ip-navy-deep) !important; font-weight: 700 !important; text-decoration: none; }
body:not(.ip-site) .pest-control-section,
body:not(.ip-site) .about-section { padding: 90px 0 !important; }
body.ip-inner-site .pest-control-section:nth-of-type(even),
body.ip-inner-site .about-section:nth-of-type(even),
body.ip-inner-site .container-faqs { background: transparent; }
body.ip-inner-site .pest-control-section .row,
body.ip-inner-site .about-section .row { align-items: center; }
body.ip-inner-site .pest-control-section p,
body.ip-inner-site .about-section p { color: var(--ip-muted); line-height: 1.8; }
body.ip-inner-site .pest-image,
body.ip-inner-site .about-section img { box-shadow: var(--ip-shadow); }
body:not(.ip-site) .section-title { color: var(--ip-navy) !important; font-size: clamp(34px, 5vw, 54px) !important; line-height: 1.08 !important; }
body:not(.ip-site) .section-description { color: var(--ip-muted) !important; font-size: 16px !important; }
body:not(.ip-site) .pest-image,
body:not(.ip-site) .about-section img,
body:not(.ip-site) .gallery-item img { object-fit: cover; border-radius: var(--ip-radius) !important; }
body.ip-inner-site .gallery-item { height: 100%; overflow: hidden; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); background: #fff; box-shadow: 0 18px 50px rgba(6,22,41,.09); }
body.ip-inner-site .gallery-caption { padding: 18px 20px; }
body.ip-inner-site .container-faqs { padding-top: 85px; padding-bottom: 85px; }
body:not(.ip-site) .accordion-item { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--ip-line) !important; border-radius: 12px !important; }
body:not(.ip-site) .accordion-button { box-shadow: none !important; color: var(--ip-navy) !important; font-weight: 700; }
body:not(.ip-site) .accordion-button:not(.collapsed) { background: var(--ip-lime-pale) !important; }
body:not(.ip-site) .footer-top { background: var(--ip-cream) !important; }
body:not(.ip-site) .footer-bottom { background: var(--ip-navy) !important; }
body:not(.ip-site) .footer-bottom2 { background: var(--ip-navy-deep) !important; }
body:not(.ip-site) .footer-certification strong { color: var(--ip-green-bright) !important; }
body.ip-inner-site .ip-inner-footer { margin-top: 0; }
body.ip-inner-site .ip-footer-brand img { box-shadow: none; }
body.ip-inner-site .pest-contact-wrapper { padding-top: 85px !important; padding-bottom: 100px !important; background: var(--ip-cream) !important; }
body.ip-inner-site .pest-form-container { border: 1px solid var(--ip-line); border-radius: var(--ip-radius-lg) !important; background: #fff !important; box-shadow: var(--ip-shadow) !important; }
body.ip-inner-site .pest-submit-btn { border: 0 !important; border-radius: 999px !important; background: var(--ip-green) !important; color: var(--ip-navy-deep) !important; font-weight: 700 !important; }

@media (max-width: 1180px) {
  .ip-header-phone { display: none; }
  .ip-menu-toggle { display: flex; }
  .ip-nav { position: fixed; inset: 0 0 auto auto; z-index: 1001; width: min(390px, 92vw); height: 100vh; height: 100dvh; padding: 110px 28px 34px; overflow-y: auto; display: grid; align-content: start; gap: 4px; background: #051425; transform: translateX(100%); transition: transform .3s ease; box-shadow: -30px 0 80px rgba(0,0,0,.3); }
  .ip-menu-open .ip-nav { transform: translateX(0); }
  .ip-nav a { padding: 14px 16px; border-radius: 10px; font-size: 16px; }
  .ip-nav .ip-nav-cta { margin: 16px 0 0; text-align: center; }
  .ip-menu-open .ip-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ip-menu-open .ip-menu-toggle span:nth-child(2) { opacity: 0; }
  .ip-menu-open .ip-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .ip-section { padding: 84px 0; }
  .ip-split-heading,
  .ip-approach-grid,
  .ip-difference-grid { grid-template-columns: 1fr; gap: 38px; }
  .ip-problem-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 460px 300px; }
  .ip-problem-featured { grid-column: 1 / 3; grid-row: auto; }
  .ip-quick-links { grid-template-columns: repeat(3, 1fr); }
  .ip-quick-links a:nth-child(3) { border-right: 0; }
  .ip-quick-links a:nth-child(-n+3) { border-bottom: 1px solid var(--ip-line); }
  .ip-trust-visual { order: -1; }
  .ip-trust-visual > img { aspect-ratio: 16 / 11; }
  .ip-trust-note { left: 24px; }
  .ip-review-grid { grid-template-columns: 170px 1fr; gap: 35px; }
  .ip-footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --ip-header-h: 70px; }
  .ip-container { width: min(100% - 32px, 1180px); }
  .ip-header-inner { width: calc(100% - 24px); }
  .ip-brand { padding: 6px 9px; }
  .ip-brand img { width: 145px; }
  .ip-hero { min-height: 700px; height: 92svh; }
  .ip-hero-image { object-position: 66% center; }
  .ip-hero-shade { background: linear-gradient(90deg, rgba(4,18,34,.93), rgba(4,18,34,.54)), linear-gradient(0deg, rgba(4,18,34,.55), transparent 50%); }
  .ip-hero-inner { padding-top: calc(var(--ip-header-h) + 28px); padding-bottom: 46px; justify-content: flex-end; }
  body.ip-site .ip-hero h1 { font-size: clamp(43px, 12.7vw, 60px); line-height: 1.1; letter-spacing: -.04em; }
  .ip-hero-lede { margin: 40px 0 28px; font-size: 16px; line-height: 1.7; }
  .ip-hero-actions { width: 100%; }
  .ip-hero-actions .ip-button { width: 100%; }
  .ip-hero-proof { display: none; }
  .ip-service-strip-inner { padding: 16px 0; display: grid; gap: 8px; }
  .ip-service-strip p:last-child { text-align: left; }
  .ip-section { padding: 70px 0; }
  .ip-section-heading h2,
  body.ip-site .ip-approach h2,
  .ip-difference h2 { font-size: 39px; }
  .ip-split-heading { margin-bottom: 34px; }
  .ip-problem-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 390px); }
  .ip-problem-featured { grid-column: auto; }
  .ip-problem-card:not(.ip-problem-featured) .ip-card-copy > span { display: block; }
  .ip-quick-links { grid-template-columns: repeat(2, 1fr); }
  .ip-quick-links a:nth-child(3) { border-right: 1px solid var(--ip-line); }
  .ip-quick-links a:nth-child(2n) { border-right: 0; }
  .ip-quick-links a:nth-child(-n+4) { border-bottom: 1px solid var(--ip-line); }
  .ip-trust-visual > img { aspect-ratio: 4 / 5; }
  .ip-trust-note { position: relative; left: auto; bottom: auto; width: calc(100% - 32px); margin: -42px auto 0; }
  .ip-review-grid { grid-template-columns: 1fr; gap: 30px; }
  .ip-review-grid blockquote { padding: 30px 0 0; border-top: 1px solid var(--ip-line); border-left: 0; }
  .ip-cta-section { padding: 82px 0; }
  body.ip-site .ip-cta-inner h2 { font-size: 41px; }
  .ip-cta-actions { flex-direction: column; gap: 18px; }
  .ip-footer-main { grid-template-columns: 1fr; gap: 28px; padding: 50px 0 38px; }
  .ip-footer-base { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 5px; }
  body:not(.ip-site) .navbar { min-height: 70px; }
  body:not(.ip-site) .navbar-brand img { width: 150px !important; }
  body:not(.ip-site) .hero-section { min-height: 390px !important; padding: 70px 0 !important; }
  body:not(.ip-site) .hero-title { font-size: 38px !important; }
  body:not(.ip-site) .pest-control-section,
  body:not(.ip-site) .about-section { padding: 64px 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
