/* ============================================================
   Swift Vector Control — Main Stylesheet
   svcpestcontrol.com
   ============================================================ */

/* --- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* --- Custom Properties ------------------------------------ */
:root {
  --bg-page:          #F8F9FA;
  --bg-dark:          #0A2540;
  --color-green:      #00A878;
  --color-action:     #FF6B35;
  --color-text:       #0D0D0D;
  --color-text-muted: #495057;
  --color-border:     #DEE2E6;
  --bg-card:          #FFFFFF;
  --radius-sm:        4px;
  --radius:           6px;
  --radius-lg:        8px;
  --shadow-sm:        0 1px 4px rgba(0,0,0,0.07);
  --shadow:           0 4px 16px rgba(0,0,0,0.11);
  --shadow-lg:        0 8px 32px rgba(0,0,0,0.16);
  --transition:       0.2s ease;
}

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

/* --- Base ------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--bg-page);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bg-dark); text-decoration: none; }
a:hover { color: var(--color-action); }

/* --- Typography ------------------------------------------- */
h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--bg-dark);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bg-dark);
  margin: 2.25rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bg-dark);
  margin: 1.5rem 0 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 1rem 0 0.35rem;
}

p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.6rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.45rem; }
strong { color: var(--bg-dark); }

/* --- Main Layout ------------------------------------------ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* ============================================================
   SITE HEADER — two-part
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-dark);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* Top bar */
.top-bar {
  background: var(--color-green);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: .4rem 1rem;
  letter-spacing: 0.01em;
}

/* Main header row */
.header-inner {
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-shield {
  width: 38px;
  height: 38px;
  background: var(--color-action);
  clip-path: polygon(50% 0%, 100% 18%, 100% 65%, 50% 100%, 0% 65%, 0% 18%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-top {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-bottom {
  font-size: 0.62rem;
  font-weight: 500;
  color: #8899aa;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Navigation */
.site-nav { flex: 1; }

.site-nav > ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.05rem;
  align-items: center;
}

.site-nav > ul > li { position: relative; }

.site-nav > ul > li > a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: #CBD5E0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.site-nav > ul > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Dropdown caret */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(203,213,224,0.6);
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  transition: border-top-color var(--transition);
}
.has-dropdown:hover > a::after { border-top-color: #fff; }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;          /* flush — no gap means no hover dead-zone */
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  display: none;
  z-index: 200;
  list-style: none;   /* suppress bullet markers ("dots outside block") */
  margin: 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--bg-page);
  color: var(--bg-dark);
}

/* Header CTA area */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-phone {
  color: #CBD5E0;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}
.header-phone:hover { color: #fff; }

.btn-header {
  background: var(--color-action);
  color: #fff !important;
  padding: .4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-header:hover {
  background: #e85a2a;
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
  color: #fff !important;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0.7rem 0;
}

.trust-items {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-green);
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn,
.cta-btn,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  background: var(--color-action);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover,
.cta-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: #e85a2a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--bg-dark);
  border: 2px solid var(--bg-dark);
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-dark);
  color: #fff;
}

/* ============================================================
   CTA BOX — dark panel, horizontal layout
   ============================================================ */
.cta-box {
  background: var(--bg-dark);
  color: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 2rem;
  row-gap: 0.35rem;
}

.cta-box h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  grid-column: 1;
  grid-row: 1;
}

.cta-box p {
  color: rgba(255,255,255,0.72);
  margin: 0;
  font-size: 0.95rem;
  grid-column: 1;
  grid-row: 2;
}

.cta-box .cta-btn {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  background: var(--color-action);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transform: none !important;
}
.cta-box .cta-btn:hover {
  background: #e85a2a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}

/* ============================================================
   PROCESS STEPS — ol with numbered circles
   ============================================================ */
.container ol {
  list-style: none;
  padding-left: 0;
  counter-reset: steps;
}

.container ol > li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.container ol > li::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  width: 28px;
  height: 28px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  margin-top: 0.22rem;
}

.container ol > li strong:first-child {
  font-weight: 600;
}

/* ============================================================
   PRICING GRID — 3-column cards
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--color-action);
}

.pricing-card .badge {
  display: inline-block;
  background: var(--color-action);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 0.22rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.pricing-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.pricing-card ul {
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.pricing-card ul li {
  color: var(--color-text-muted);
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* ============================================================
   TABLES
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.94rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th {
  background: var(--bg-dark);
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

tr:nth-child(even) td { background: var(--bg-page); }
tr:last-child td { border-bottom: none; }

/* ============================================================
   FORMS
   ============================================================ */
form {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0 2rem;
}

form > p { margin-bottom: 1.15rem; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--bg-dark);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="url"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.975rem;
  color: var(--color-text);
  background: var(--bg-card);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23495057' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

input[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   SITE FOOTER — 4-column grid
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: #8899aa;
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul li a {
  color: #8899aa;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-action); }

.footer-contact p {
  font-size: 0.875rem;
  color: #8899aa;
  margin-bottom: 0.4rem;
}
.footer-contact a {
  color: #8899aa;
}
.footer-contact a:hover { color: var(--color-action); }

/* Legacy contact item class kept for compat */
.footer-contact-item {
  font-size: 0.875rem;
  color: #8899aa;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-tagline {
  color: #4A5568;
  font-style: italic;
  margin: 0;
}

/* Footer brand (legacy, hidden in 4-col layout) */
.footer-brand { display: none; }

/* ============================================================
   DISCLOSURE
   ============================================================ */
.disclosure {
  background: #fff8f5;
  border-left: 3px solid var(--color-action);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   RESPONSIVE — 820px (footer 2-col, pricing stack)
   ============================================================ */
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

/* ============================================================
   RESPONSIVE — 640px (mobile: hamburger, stacked CTA, 1-col footer)
   ============================================================ */
@media (max-width: 640px) {
  /* Hamburger */
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  /* Mobile nav open state */
  .site-header.nav-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    animation: slideDown 0.2s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .site-header.nav-open .site-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-header.nav-open .site-nav > ul > li > a {
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.94rem;
  }

  .site-header.nav-open .dropdown {
    display: block;
    position: static;
    background: rgba(255,255,255,0.04);
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .site-header.nav-open .dropdown li a {
    padding: 0.55rem 1.5rem 0.55rem 2.5rem;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
  }

  .site-header.nav-open .dropdown li a:hover {
    color: var(--color-action);
    background: transparent;
    padding-left: 2.75rem;
  }

  .site-header.nav-open .header-cta {
    display: flex;
    padding: 0.85rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  /* Hamburger → X animation */
  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 1.5rem 1rem 2rem; }

  /* Trust strip */
  .trust-items { gap: 1rem; }

  /* Stacked CTA */
  .cta-box {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }
  .cta-box h3  { grid-column: 1; grid-row: 1; }
  .cta-box p   { grid-column: 1; grid-row: 2; }
  .cta-box .cta-btn {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    text-align: center;
  }

  /* Single-column footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .trust-strip, .site-footer, .cta-box, form { display: none; }
  .container { max-width: 100%; padding: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
