/* ============================================================
   PestControl Expert — Design System
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary:        #0d1f3c;
  --primary-light:  #1a3a6b;
  --cta:            #e85d04;
  --cta-hover:      #c94d03;
  --accent:         #2d6a4f;
  --accent-light:   #40916c;
  --bg:             #f7f8fa;
  --surface:        #ffffff;
  --border:         #dde3ec;
  --border-light:   #edf0f5;
  --text:           #18202e;
  --text-muted:     #6c757d;
  --text-light:     #9aa3af;
  --info-bg:        #eaf3fb;
  --info-border:    #1565c0;
  --warn-bg:        #fff8e1;
  --warn-border:    #f57f17;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.08);
  --shadow-md:      0 4px 14px rgba(0,0,0,.11);
  --shadow-lg:      0 8px 28px rgba(0,0,0,.15);
  --r-sm:           4px;
  --r-md:           8px;
  --r-lg:           14px;
  --font-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif:     Georgia, 'Times New Roman', serif;
  --max-w:          920px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

::selection { background: rgba(232,93,4,.18); color: var(--text); }

/* --- Base --- */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}
.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.025em;
}
.logo-name span { color: var(--cta); }
.logo-tagline {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 500;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .7rem;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--primary);
  background: var(--border-light);
  text-decoration: none;
}
.nav-cta {
  background: var(--cta) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: .42rem 1rem !important;
  border-radius: var(--r-sm) !important;
  margin-left: .4rem;
  transition: background .15s, transform .15s !important;
}
.nav-cta:hover {
  background: var(--cta-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ============================================================
   DISCLOSURE
   ============================================================ */
.disclosure {
  background: var(--info-bg);
  border-left: 3px solid var(--info-border);
  padding: .55rem 1rem .55rem 1.1rem;
  font-size: .8rem;
  color: var(--text-muted);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 2.25rem;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 3rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.22;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .6rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.28;
  color: var(--primary);
  font-weight: 700;
  margin: 2.75rem 0 .8rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--border-light);
}

h3 {
  font-size: 1.13rem;
  line-height: 1.38;
  color: var(--accent);
  font-weight: 600;
  margin: 2rem 0 .5rem;
}

h4 {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin: 1.5rem 0 .4rem;
}

p { margin-bottom: 1.1rem; }

ul, ol {
  padding-left: 1.6rem;
  margin-bottom: 1.1rem;
}
li { margin-bottom: .45rem; }

strong {
  color: var(--primary);
  font-weight: 600;
}

em { font-style: italic; }

a {
  color: var(--info-border);
  text-decoration: underline;
  text-decoration-color: rgba(21,101,192,.3);
  transition: color .15s, text-decoration-color .15s;
}
a:hover {
  color: var(--cta);
  text-decoration-color: var(--cta);
  text-decoration: underline;
}

/* ============================================================
   TABLES
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead th {
  background: var(--primary);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.58;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f5f7fa; }
tbody tr:hover td { background: var(--info-bg); transition: background .12s; }

/* ============================================================
   INFO & WARNING BOXES
   ============================================================ */
.info-box {
  background: var(--info-bg);
  border: 1px solid rgba(21,101,192,.15);
  border-left: 4px solid var(--info-border);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.75rem 0;
}
.info-box p:last-child,
.warning-box p:last-child { margin-bottom: 0; }

.warning-box {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.75rem 0;
}

/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 2.75rem 2.25rem;
  border-radius: var(--r-lg);
  margin: 3.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box h3 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 .65rem;
  position: relative;
}

.cta-box p {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  position: relative;
}

.cta-btn {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  padding: .9rem 2.25rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  box-shadow: 0 4px 16px rgba(232,93,4,.45);
  transition: background .15s, transform .15s, box-shadow .15s;
  position: relative;
}
.cta-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(232,93,4,.5);
  color: #fff;
  text-decoration: none;
}
.cta-btn:active { transform: translateY(0); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 0 0 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.trust-item::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 800;
  font-size: .95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.55);
  padding: 3.5rem 1.5rem 1.75rem;
  margin-top: 4rem;
  font-size: .875rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  letter-spacing: -.02em;
  display: block;
  margin-bottom: .6rem;
}
.footer-brand .logo-name span { color: var(--cta); }
.footer-brand p {
  font-size: .82rem;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
  margin: 0;
}

.footer-section h4 {
  color: rgba(255,255,255,.88);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .9rem;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li { margin-bottom: .45rem; }
.footer-section a {
  color: rgba(255,255,255,.48);
  text-decoration: none;
  font-size: .82rem;
  transition: color .15s;
}
.footer-section a:hover {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.38);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-legal a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  font-size: .8rem;
  transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.75); }

.footer-disclosure {
  margin-top: 1.25rem;
  font-size: .75rem;
  color: rgba(255,255,255,.28);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .main-nav a:not(.nav-cta):not(:nth-last-child(2)) { display: none; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }

  .container { padding: 2rem 1.1rem 2.5rem; }
  .header-inner { padding: .75rem 1.1rem; }
  .logo-name { font-size: 1.15rem; }
  .logo-tagline { display: none; }

  .main-nav a:not(.nav-cta) { display: none; }

  .trust-bar { gap: .9rem; }

  .cta-box { padding: 2rem 1.25rem; }
  .cta-box h3 { font-size: 1.3rem; }
  .cta-btn { padding: .8rem 1.5rem; font-size: .95rem; }

  table { font-size: .82rem; }
  td, thead th { padding: .55rem .65rem; }

  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .cta-box, .trust-bar, .nav-cta { display: none !important; }
  body { font-size: 12pt; background: white; color: black; }
  a { color: black; }
  h1, h2, h3 { color: black; }
}
