/* ============================================================
   Termites And Pests — Design System
   ============================================================ */

/* --- Variables --- */
:root {
  --navy:        #1b2b4b;
  --navy-light:  #243662;
  --navy-pale:   #eef1f7;
  --orange:      #e8890c;
  --orange-dark: #c97400;
  --green:       #2d7a3a;
  --bg:          #f5f7fa;
  --bg-card:     #ffffff;
  --text:        #1a1a1a;
  --text-soft:   #4b5563;
  --text-muted:  #6b7280;
  --border:      #dde3ed;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 2px 8px rgba(0,0,0,.10);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --header-h:    64px;
  --max-w:       880px;
  --max-w-wide:  1100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--orange); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--orange);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}
.logo-text em {
  font-style: normal;
  color: var(--orange);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.site-nav a.nav-cta {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: .45rem 1rem;
  border-radius: 6px;
  margin-left: .5rem;
}
.site-nav a.nav-cta:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: .55rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  align-items: center;
  font-size: .78rem;
  color: var(--text-muted);
  list-style: none;
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: .2rem;
  color: var(--border);
  font-size: 1rem;
}
.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrap {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 2rem;
  align-items: start;
}
.page-wrap.full-width {
  grid-template-columns: 1fr;
  max-width: var(--max-w);
}

/* ============================================================
   MAIN CONTENT CARD
   ============================================================ */
.main-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* Disclosure */
.disclosure {
  background: var(--navy-pale);
  border-left: 3px solid var(--navy);
  padding: .55rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .78rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

/* Headings */
h1 {
  font-size: 2rem;
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -.5px;
}
h2 {
  font-size: 1.38rem;
  color: var(--navy);
  margin: 2.25rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: -.3px;
}
h3 {
  font-size: 1.1rem;
  color: var(--navy-light);
  margin: 1.5rem 0 .45rem;
  font-weight: 700;
}
h4 {
  font-size: 1rem;
  color: var(--text);
  margin: 1.1rem 0 .35rem;
  font-weight: 700;
}

/* Body text */
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }
strong { color: var(--navy); font-weight: 600; }

aside {
  background: var(--navy-pale);
  border-left: 4px solid var(--navy);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
aside h3 { margin-top: 0; color: var(--navy); }

blockquote {
  border-left: 4px solid var(--orange);
  padding: .75rem 1.25rem;
  background: #fff8f0;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  color: var(--text-soft);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
thead { background: var(--navy); }
th {
  color: #fff;
  padding: .65rem .85rem;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
td {
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover { background: var(--navy-pale); }

/* ============================================================
   HOMEPAGE CARDS
   ============================================================ */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--orange);
}
.card h3 {
  color: var(--navy);
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: .45rem;
}
.card p { font-size: .875rem; color: var(--text-soft); margin: 0; line-height: 1.6; }

/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.cta-box h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 .5rem;
  letter-spacing: -.2px;
}
.cta-box p {
  color: rgba(255,255,255,.78);
  margin-bottom: 1.25rem;
  font-size: .97rem;
}
.cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: .8rem 2.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(232,137,12,.45);
}
.cta-btn:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(232,137,12,.5);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li { margin: 0; }
.sidebar-links a {
  display: block;
  padding: .38rem 0;
  font-size: .855rem;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .12s, padding-left .12s;
  line-height: 1.45;
}
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links a:hover {
  color: var(--orange);
  padding-left: .35rem;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
}
.sidebar-cta h4 {
  color: rgba(255,255,255,.55);
  border-bottom-color: rgba(255,255,255,.12);
}
.sidebar-cta p {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  margin-bottom: .9rem;
  line-height: 1.55;
}
.sidebar-cta .cta-btn {
  width: 100%;
  text-align: center;
  font-size: .875rem;
  padding: .65rem 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .site-logo { margin-bottom: .85rem; }
.footer-brand p {
  font-size: .83rem;
  line-height: 1.65;
  max-width: 255px;
  color: rgba(255,255,255,.55);
}
.footer-col h5 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.38);
  font-weight: 700;
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  font-size: .855rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .12s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2rem;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   BADGES & ALERTS
   ============================================================ */
.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-green  { background: #d1fae5; color: var(--green); }
.badge-orange { background: #fff3cd; color: #92400e; }
.badge-navy   { background: var(--navy-pale); color: var(--navy); }
.badge-red    { background: #fee2e2; color: #991b1b; }

.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
  font-size: .9rem;
  border-left: 4px solid;
  line-height: 1.6;
}
.alert-info    { background: var(--navy-pale); border-color: var(--navy); color: var(--navy-light); }
.alert-warning { background: #fff8e1; border-color: #f59e0b; color: #78350f; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }

  .header-inner { gap: 1rem; }
  .logo-text { font-size: .95rem; }
  .logo-mark { width: 30px; height: 30px; font-size: .85rem; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .65rem .5rem; font-size: .92rem; border-radius: 0; }
  .site-nav a.nav-cta { margin: .75rem 0 0; text-align: center; border-radius: 6px; }

  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }

  .main-content { padding: 1.1rem 1.15rem; border-radius: var(--radius); }
  .page-wrap { padding: 1rem .85rem 2rem; gap: 1.25rem; }

  .cta-box { padding: 1.5rem 1.1rem; }
  .cta-box h3 { font-size: 1.2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 1.25rem 1.25rem; }
  .footer-brand { grid-column: auto; }
  .card-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .card-container { grid-template-columns: 1fr; }
}
