/*
Theme Name: Roach Expert GP
Theme URI: https://roachexpert.com/
Description: A fast, accessible GeneratePress child theme for Roach Expert.
Author: Roach Expert
Template: generatepress
Version: 1.3.8
Text Domain: roachexpert-gp
*/

:root {
  --rex-ink: #14251f;
  --rex-muted: #5c6b65;
  --rex-green: #174c3c;
  --rex-green-2: #246b52;
  --rex-mint: #e7f3ed;
  --rex-amber: #9b5a08;
  --rex-cream: #f7f6f0;
  --rex-white: #ffffff;
  --rex-line: #dbe3de;
  --rex-shadow: 0 18px 50px rgba(20, 37, 31, 0.09);
  --rex-radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  color: var(--rex-ink);
  background: var(--rex-cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: var(--rex-green-2); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--rex-green); }

h1, h2, h3, h4 {
  color: var(--rex-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.grid-container { max-width: 1180px; }

.rex-topbar {
  background: var(--rex-ink);
  color: #dce8e2;
  font-size: 13px;
  letter-spacing: .03em;
}

.rex-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px;
}

.rex-topbar a { color: #fff; font-weight: 700; text-decoration: none; }

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--rex-line);
}

.inside-header { padding: 20px 24px; }

.site-branding-container { display: flex; align-items: center; }
.site-branding-container .site-logo { margin-right: 13px; }
.site-logo img { width: 54px; height: 54px; object-fit: contain; }
.site-title { font-family: Georgia, "Times New Roman", serif; font-size: 29px; letter-spacing: -.03em; }
.site-title a { color: var(--rex-green); }
.site-description { color: var(--rex-muted); font-size: 13px; }

.main-navigation {
  background: var(--rex-white);
  border-bottom: 1px solid var(--rex-line);
}
.nav-float-right #site-navigation { margin-left: auto; border-bottom: 0; }
.main-navigation .inside-navigation { max-width: 1180px; margin: 0 auto; }

.main-navigation .main-nav ul li a {
  color: var(--rex-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .015em;
  padding-left: 22px;
  padding-right: 22px;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--rex-green);
  background: var(--rex-mint);
}
.main-navigation .main-nav > ul > li:last-child { margin-left: 10px; }
.main-navigation .main-nav > ul > li:last-child > a {
  min-height: 42px;
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 0 18px;
  color: #fff;
  background: var(--rex-green);
  border-radius: 8px;
  line-height: 42px;
}
.main-navigation .main-nav > ul > li:last-child:hover > a,
.main-navigation .main-nav > ul > li:last-child:focus-within > a { color: #fff; background: var(--rex-green-2); }

.rex-hero {
  position: relative;
  overflow: hidden;
  background: var(--rex-green);
  color: #fff;
}

.rex-hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -120px;
  top: -190px;
  border: 90px solid rgba(255,255,255,.055);
  border-radius: 50%;
}

.rex-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 24px 74px;
}

.rex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #cce6da;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rex-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--rex-amber); }

.rex-hero h1 {
  max-width: 790px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
}

.rex-hero__lead {
  max-width: 690px;
  margin: 0 0 30px;
  color: #e2eee8;
  font-size: clamp(18px, 2vw, 21px);
}

.rex-search {
  display: flex;
  max-width: 680px;
  padding: 7px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.rex-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.rex-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 13px 15px;
  color: var(--rex-ink);
  background: transparent;
  font-size: 16px;
}
.rex-search input:focus { outline: 2px solid var(--rex-amber); border-radius: 7px; }
.rex-search button {
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  color: #fff;
  background: var(--rex-amber);
  font-weight: 800;
  cursor: pointer;
}

.rex-paths {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: -28px auto 0;
  padding: 0 24px 22px;
}

.rex-path {
  display: block;
  padding: 25px;
  color: var(--rex-ink);
  background: #fff;
  border: 1px solid var(--rex-line);
  border-radius: var(--rex-radius);
  box-shadow: var(--rex-shadow);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rex-path:hover, .rex-path:focus { color: var(--rex-ink); transform: translateY(-3px); box-shadow: 0 22px 60px rgba(20,37,31,.14); }
.rex-path__number { color: var(--rex-amber); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.rex-path strong { display: block; margin: 7px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.rex-path span:last-child { color: var(--rex-muted); font-size: 14px; line-height: 1.5; }

.site-content { padding: 58px 24px 76px; }
.content-area, #primary { float: none; width: 100%; }
.widget-area { display: none; }

.rex-section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 10px;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--rex-line);
}
.rex-section-head h2 { max-width: 680px; margin: 0; font-size: clamp(31px, 4vw, 44px); }
.rex-section-head > a { flex: 0 0 auto; padding-bottom: 5px; font-size: 14px; font-weight: 800; text-decoration: none; }
.rex-section-kicker { margin: 0 0 7px; color: var(--rex-green-2); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.rex-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--rex-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .025em;
}
.rex-breadcrumbs a { color: var(--rex-green-2); text-decoration: none; }

.blog .site-main,
.archive .site-main,
.search .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.blog .site-main > header,
.archive .site-main > header,
.search .site-main > header,
.blog .site-main > .paging-navigation,
.archive .site-main > .paging-navigation,
.search .site-main > .paging-navigation { grid-column: 1 / -1; }

.blog article,
.archive article,
.search article {
  display: flex;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--rex-line);
  border-radius: var(--rex-radius);
  box-shadow: 0 7px 26px rgba(20,37,31,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog article:hover, .archive article:hover, .search article:hover { transform: translateY(-3px); box-shadow: var(--rex-shadow); }
.blog article .inside-article, .archive article .inside-article, .search article .inside-article {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 0 25px 27px;
}
.blog article .post-image, .archive article .post-image, .search article .post-image { margin: 0 -25px 24px; }
.post-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.entry-title { font-size: clamp(25px, 3vw, 40px); }
.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: 23px; }
.entry-title a { color: var(--rex-ink); text-decoration: none; }
.entry-title a:hover { color: var(--rex-green-2); }
.entry-meta { color: #55645c; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.entry-summary { color: var(--rex-muted); font-size: 15px; }
.blog .entry-summary, .archive .entry-summary, .search .entry-summary { flex: 1; }
.read-more { font-weight: 800; text-decoration: none; }

.single .site-content, .page .site-content { max-width: 1020px; padding-top: 38px; }
.single .site-main, .page .site-main { width: 100%; }
.single .inside-article, .page .inside-article { padding: clamp(34px, 6vw, 72px); background: #fff; border: 1px solid var(--rex-line); border-radius: var(--rex-radius); box-shadow: var(--rex-shadow); }
.single .entry-header, .page .entry-header { max-width: 760px; margin: 0 auto 30px; padding-bottom: 24px; border-bottom: 1px solid var(--rex-line); }
.single .entry-title, .page .entry-title { margin-bottom: 13px; font-size: clamp(36px, 5.2vw, 58px); }
.single .entry-content, .page .entry-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.single .entry-content > p:first-of-type { font-size: 20px; color: #40534b; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(29px, 4vw, 38px); }
.entry-content h3 { margin-top: 1.6em; font-size: 25px; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 34px 0; padding: 22px 26px; background: var(--rex-mint); border-left: 4px solid var(--rex-green-2); }
.entry-content table { display: block; overflow-x: auto; border: 1px solid var(--rex-line); border-radius: 10px; }
.entry-content th { background: var(--rex-green); color: #fff; }

.rex-cta { background: var(--rex-ink); color: #dce8e2; }
.rex-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
.rex-cta h2 { margin: 0 0 8px; color: #fff; font-size: 31px; }
.rex-cta p { margin: 0; }
.rex-button { display: inline-block; flex: 0 0 auto; padding: 13px 21px; color: #fff !important; background: var(--rex-amber); border-radius: 9px; font-weight: 800; text-decoration: none; }

.rex-footer-main {
  color: #becfc7;
  background: #10201a;
  border-top: 1px solid rgba(255,255,255,.08);
}
.rex-footer-main__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) 1fr 1fr minmax(230px, 1.15fr);
  gap: clamp(30px, 5vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 24px 56px;
}
.rex-footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}
.rex-footer-brand p { max-width: 380px; margin: 0 0 20px; font-size: 15px; line-height: 1.7; }
.rex-footer-badge {
  display: inline-block;
  padding: 8px 11px;
  color: #d8e7df;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.rex-affiliate-disclosure {
  max-width: 430px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.rex-affiliate-disclosure strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.rex-affiliate-disclosure p { margin: 0; color: #9fb2a9; font-size: 12px; line-height: 1.65; }
.rex-footer-column h2 {
  margin: 3px 0 18px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.rex-footer-column ul { margin: 0; list-style: none; }
.rex-footer-column li { margin-bottom: 10px; }
.rex-footer-column a { color: #d7e3dd; font-size: 14px; font-weight: 650; text-decoration: none; }
.rex-footer-column a:hover, .rex-footer-column a:focus { color: #fff; text-decoration: underline; text-decoration-color: var(--rex-amber); }
.rex-footer-note p { margin: 0 0 16px; color: #aebfb7; font-size: 14px; line-height: 1.65; }
.rex-footer-note > a { color: #f4ae50; font-weight: 800; }

.site-footer { background: #10201a; color: #bfcfc7; }
.site-info { padding: 20px 24px; background: #0b1813; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; letter-spacing: .02em; }
.site-info a { color: #fff; }

.nav-links a, .page-numbers { border-radius: 8px; }
button, input[type="submit"] { border-radius: 8px; }
:focus-visible { outline: 3px solid var(--rex-amber); outline-offset: 3px; }

@media (max-width: 900px) {
  .blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rex-hero__inner { padding-top: 62px; }
  .rex-footer-main__inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .rex-footer-note { grid-column: 1 / -1; max-width: 620px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .rex-topbar__inner { justify-content: center; text-align: center; }
  .rex-topbar__inner span:last-child { display: none; }
  .inside-header { padding: 15px 18px; }
  .site-logo img { width: 44px; height: 44px; }
  .site-title { font-size: 24px; }
  .main-navigation .main-nav > ul > li:last-child { margin-left: 0; }
  .main-navigation .main-nav > ul > li:last-child > a { margin: 4px 14px 12px; }
  .rex-hero__inner { padding: 48px 20px 58px; }
  .rex-hero h1 { font-size: 41px; }
  .rex-search { display: block; }
  .rex-search input[type="search"], .rex-search button { width: 100%; }
  .rex-paths { grid-template-columns: 1fr; margin-top: -20px; padding: 0 18px 18px; }
  .blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr; }
  .site-content { padding: 38px 18px 52px; }
  .rex-section-head { display: block; margin-bottom: 4px; }
  .rex-section-head > a { display: inline-block; margin-top: 14px; }
  .rex-breadcrumbs { margin-bottom: 14px; }
  .single .inside-article, .page .inside-article { padding: 26px 20px; }
  .single .entry-header, .page .entry-header { margin-bottom: 24px; }
  .single .entry-title, .page .entry-title { font-size: 36px; }
  .rex-cta__inner { display: block; padding: 40px 20px; }
  .rex-cta .rex-button { margin-top: 20px; }
  .rex-footer-main__inner { grid-template-columns: 1fr 1fr; gap: 34px 26px; padding: 48px 20px 42px; }
  .rex-footer-brand, .rex-footer-note { grid-column: 1 / -1; }
  .rex-footer-brand p { max-width: none; }
}

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

.rex-post-dates {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.28em;
}

.rex-post-dates .rex-date-label {
	font-weight: 700;
	color: #26352f;
}

.rex-post-dates .rex-original-date {
	color: #64736c;
}

.rex-post-dates .rex-original-date .rex-date-label {
	font-weight: 400;
	color: inherit;
}

.rex-post-dates .rex-date-separator {
	margin-inline: 0.12em;
	color: #97a39d;
}

/* Reusable editorial components for information, how-to, comparison and review posts. */
.rex-answer-first,
.rex-verdict,
.rex-safety-note,
.rex-pro-note,
.rex-methodology,
.rex-key-takeaways {
	margin: 1.6rem 0;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--rex-line);
	border-radius: 14px;
	background: var(--rex-white);
	box-shadow: 0 8px 24px rgba(20, 37, 31, 0.06);
}

.rex-answer-first,
.rex-key-takeaways {
	border-left: 5px solid var(--rex-green-2);
	background: var(--rex-mint);
}

.rex-verdict {
	border-top: 5px solid var(--rex-amber);
}

.rex-safety-note {
	border-left: 5px solid #b84a3b;
	background: #fff7f5;
}

.rex-pro-note {
	border-left: 5px solid var(--rex-amber);
	background: #fffaf1;
}

.rex-methodology {
	background: #f4f7f5;
}

.rex-answer-first > :first-child,
.rex-verdict > :first-child,
.rex-safety-note > :first-child,
.rex-pro-note > :first-child,
.rex-methodology > :first-child,
.rex-key-takeaways > :first-child {
	margin-top: 0;
}

.rex-answer-first > :last-child,
.rex-verdict > :last-child,
.rex-safety-note > :last-child,
.rex-pro-note > :last-child,
.rex-methodology > :last-child,
.rex-key-takeaways > :last-child {
	margin-bottom: 0;
}

.rex-pros-cons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.6rem 0;
}

.rex-pros,
.rex-cons {
	padding: 1.2rem 1.3rem;
	border: 1px solid var(--rex-line);
	border-radius: 12px;
	background: var(--rex-white);
}

.rex-pros { border-top: 4px solid var(--rex-green-2); }
.rex-cons { border-top: 4px solid #b84a3b; }

.rex-comparison-table th,
.rex-comparison-table td {
	min-width: 145px;
	vertical-align: top;
}

.rex-article-checklist li,
.rex-key-takeaways li {
	margin-bottom: 0.45rem;
}

.rex-review-note {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rex-line);
	color: var(--rex-muted);
	font-size: 0.92rem;
}

@media (max-width: 640px) {
	.rex-pros-cons { grid-template-columns: 1fr; }
	.rex-answer-first,
	.rex-verdict,
	.rex-safety-note,
	.rex-pro-note,
	.rex-methodology,
	.rex-key-takeaways { padding: 1rem 1.05rem; }
}
