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

/* --- Custom Properties ------------------------------------ */
:root {
  --navy:          #1b2b4b;
  --navy-dark:     #0f1e35;
  --navy-light:    #2a3f6a;
  --orange:        #e8890c;
  --orange-dark:   #c97400;
  --orange-light:  #fff8ee;
  --green:         #1a7a45;
  --gray-50:       #f8f9fb;
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-400:      #94a3b8;
  --gray-600:      #475569;
  --gray-700:      #334155;
  --text:          #1a1a2e;
  --white:         #ffffff;
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     14px;
  --radius-xl:     22px;
  --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;
  --header-h:      70px;
  --max-w:         1160px;
  --content-w:     820px;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin-bottom: 1.25rem; }

h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  margin: 2.25rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: var(--navy); }
h4 { font-size: 1rem; 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(--navy); }

/* --- Layout ---------------------------------------------- */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.logo-shield {
  width: 42px;
  height: 42px;
  background: var(--orange);
  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: 0.78rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

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

.logo-top {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-bottom {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

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

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

.site-nav > ul > li > a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.site-nav > ul > li > a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown indicator */
.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(255,255,255,0.5);
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  transition: border-top-color var(--transition);
}

.has-dropdown:hover > a::after { border-top-color: var(--white); }

/* Dropdown menu */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  display: none;
  z-index: 200;
}

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

.dropdown li a {
  display: block;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.dropdown li a:hover {
  background: var(--gray-50);
  color: var(--navy);
  padding-left: 1.4rem;
}

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

.header-phone {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-phone:hover { color: var(--white); }

.btn-header {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-header:hover {
  background: var(--orange-dark);
  box-shadow: 0 2px 8px rgba(232,137,12,0.4);
  color: var(--white) !important;
}

/* Mobile nav 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: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.9rem 0;
}

.trust-items {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--orange-light);
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============================================================
   DISCLOSURE BANNER
   ============================================================ */
.disclosure {
  background: var(--orange-light);
  border-left: 3px solid var(--orange);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .cta-btn, input[type="submit"], button[type="submit"] {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  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: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232,137,12,0.4);
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(232,137,12,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.cta-box p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.4rem;
  font-size: 1rem;
}

/* ============================================================
   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(--navy);
  color: var(--white);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

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

/* ============================================================
   FORMS
   ============================================================ */
form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  margin: 1.5rem 0 2rem;
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  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(--gray-200);
  border-radius: var(--radius);
  font-size: 0.975rem;
  color: var(--text);
  background: var(--white);
  font-family: inherit;
  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='%23475569' 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(--orange);
  box-shadow: 0 0 0 3px rgba(232,137,12,0.15);
}

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

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand .site-logo { margin-bottom: 1rem; }

.footer-brand .tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.5;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

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

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

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-contact-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.55rem;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  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);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 820px) {
  /* Hide nav and CTA in header */
  .site-nav, .header-cta { display: none; }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Mobile nav open state */
  .site-header.nav-open { position: sticky; }

  .site-header.nav-open .site-nav {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-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.8rem 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.6rem 1.5rem 0.6rem 2.5rem;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

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

  .site-header.nav-open .has-dropdown > a::after {
    border-top-color: rgba(255,255,255,0.4);
    transform: none;
  }

  .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);
  }

  /* Mobile hamburger 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.65rem; }
  h2 { font-size: 1.3rem; }

  .container { padding: 2rem 1.25rem 2.5rem; }

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

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; }

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

@media (max-width: 540px) {
  :root { --header-h: 62px; }

  .logo-bottom { display: none; }
  .logo-top { font-size: 0.95rem; }
  .logo-shield { width: 36px; height: 36px; font-size: 0.7rem; }

  .container { padding: 1.5rem 1rem 2rem; }

  .trust-item { font-size: 0.78rem; }
  .trust-icon { width: 22px; height: 22px; font-size: 0.75rem; }

  .cta-box { padding: 1.75rem 1.25rem; }
  .cta-box h3 { font-size: 1.25rem; }

  form { padding: 1.25rem; }

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

/* ============================================================
   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; }
}
