/* ============================================================
   PEST CONTROL TESTS — Shared Design System
   Used by: index.html/php, about.html, contact.html,
            privacy.html, terms.html, reviews.html
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
    /* Brand */
    --red:          #BD0809;
    --red-hover:    #d60a0b;
    --red-dark:     #8b0000;
    --black:        #000000;

    /* Light mode (default) */
    --bg:           #f8fafc;
    --surface:      #ffffff;
    --text:         #0f172a;
    --muted:        #475569;
    --muted-light:  #94a3b8;
    --border:       #e2e8f0;
    --shadow:       0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,.12), 0 16px 40px rgba(0,0,0,.1);

    /* Semantic */
    --success:      #10B981;
    --warning:      #F59E0B;
    --error:        #EF4444;

    /* Typography */
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius:       12px;
}

/* ── Dark mode ── */
body.dark .page-hero h1 { color: var(--text); }
body.dark .page-hero p  { color: var(--muted); }

body.dark,
body.dark-mode {
    --bg:           #0a0a0a;
    --surface:      #1a1a1a;
    --text:         #ececec;
    --muted:        #b4b4b4;
    --muted-light:  #6e6e6e;
    --border:       #2a2a2a;
    --shadow:       0 1px 3px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
    --shadow-hover: 0 4px 6px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.5);
}

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

/* ── Base ── */
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background .3s, color .3s;
    -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-bottom: 3px solid var(--red);
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
}

.logo-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo-icon::before { display: none; }
.logo-icon span    { display: none; }

.logo-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1;
}

.logo-sub {
    font-size: .58rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.header-actions {
    display: flex;
    gap: .6rem;
    align-items: center;
}

/* ── BUTTONS ── */
.btn-ghost {
    background: none;
    border: 1px solid #444;
    color: #ccc;
    padding: .4rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font);
    font-size: .82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .2s;
    white-space: nowrap;
}
.btn-ghost:hover { border-color: #888; color: #fff; }

.btn-primary {
    background: var(--red);
    color: #fff;
    border: none;
    padding: .75rem 1.75rem;
    border-radius: 10px;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s;
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(189,8,9,.3); }

.btn-white {
    background: #fff;
    color: var(--red);
    border: none;
    padding: .85rem 2rem;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ── HERO (sub-pages) ── */
.page-hero {
    background: var(--surface);
    border-bottom: 3px solid var(--red);
    color: var(--text);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background .3s, color .3s;
}
.page-hero::before {
    content: attr(data-emoji);
    position: absolute;
    font-size: 15rem;
    opacity: .04;
    top: -2rem;
    right: -3rem;
    transform: rotate(-15deg);
    pointer-events: none;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: .6rem; letter-spacing: -.5px; color: var(--text); }
.page-hero p  { font-size: 1rem; color: var(--muted); max-width: 520px; margin: 0 auto; }
.page-hero .hero-badge {
    margin-top: .85rem;
    display: inline-block;
    background: rgba(189,8,9,.08);
    color: var(--red);
    padding: .3rem .85rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}
body.dark .page-hero .hero-badge { background: rgba(189,8,9,.2); }

/* ── PAGE CONTENT ── */
.page-content { max-width: 900px; margin: 3rem auto 5rem; padding: 0 1.5rem; }
.page-content-narrow { max-width: 760px; margin: 3rem auto 5rem; padding: 0 1.5rem; }

/* ── CARDS ── */
.card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-hover); }

.card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--border);
    color: var(--text);
}

.card h3 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .4rem; color: var(--text); }
.card p  { color: var(--muted); margin-bottom: .85rem; font-size: .95rem; }
.card ul, .card ol { color: var(--muted); padding-left: 1.5rem; margin-bottom: .85rem; font-size: .95rem; }
.card li { margin-bottom: .4rem; }
.card a  { color: var(--red); text-decoration: none; font-weight: 500; }
.card a:hover { text-decoration: underline; }

/* ── TAG / BADGE ── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fef2f2;
    color: var(--red);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: .3rem .85rem;
    border-radius: 20px;
    margin-bottom: .85rem;
}
body.dark .tag { background: rgba(189,8,9,.15); }

/* ── CALLOUT ── */
.callout {
    background: #fef2f2;
    border-left: 4px solid var(--red);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: .92rem;
    color: var(--muted);
}
body.dark .callout { background: rgba(189,8,9,.1); }

.callout-warning {
    background: #fff8e1;
    border-left-color: var(--warning);
}
body.dark .callout-warning { background: rgba(245,158,11,.1); }

/* ── STAT GRID ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.stat-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat-lbl { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

/* ── FEATURE GRID ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.feature-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform .2s, box-shadow .2s;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-item .icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.feature-item p  { font-size: .88rem; color: var(--muted); margin: 0; }

/* ── CTA CARD ── */
.cta-card {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    color: #fff;
    margin-top: 2rem;
}
.cta-card h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: .6rem; }
.cta-card p  { opacity: .9; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ── CONTACT GRID ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.contact-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.contact-box .ico  { font-size: 1.75rem; margin-bottom: .5rem; }
.contact-box .lbl  { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.contact-box .val  { font-size: .92rem; font-weight: 600; color: var(--text); margin-top: .25rem; }
.contact-box a     { color: var(--red); text-decoration: none; }

/* ── FOOTER ── */
.site-footer {
    background: #000;
    color: #555;
    text-align: center;
    padding: 2rem;
    font-size: .82rem;
}
.site-footer a { color: #666; text-decoration: none; margin: 0 .5rem; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-links { margin-bottom: .75rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; }

/* ── DARK MODE TOGGLE ── */
.dark-toggle {
    background: none;
    border: 1px solid #444;
    color: #ccc;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
.dark-toggle:hover { border-color: #888; color: #fff; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }

/* ── UTILITIES ── */
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.hidden      { display: none !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .site-header  { padding: .9rem 1rem; }
    .page-hero h1 { font-size: 1.9rem; }
    .card         { padding: 1.5rem; }
    .page-content, .page-content-narrow { padding: 0 1rem; margin-top: 2rem; }
    .cta-card     { padding: 1.75rem 1.25rem; }
    .cta-card h2  { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.6rem; }
    .stat-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* ── PCT Hamburger Menu ───────────────────────────────────────────────────── */
#pct-ham {
    background: none;
    border: 1px solid #444;
    border-radius: 8px;
    width: 36px; height: 36px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
    transition: border-color .2s;
    position: relative;
    z-index: 10001;
}
#pct-ham:hover { border-color: #888; }
#pct-ham.open  { border-color: #BD0809; }
.pct-ham-bar {
    width: 16px; height: 2px;
    background: #ccc;
    border-radius: 2px;
    transition: all .25s ease;
    transform-origin: center;
    display: block;
}
#pct-ham.open .pct-ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#pct-ham.open .pct-ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
#pct-ham.open .pct-ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#pct-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
#pct-menu-overlay.open { display: block; }

#pct-menu-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: #111;
    border-left: 1px solid #222;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#pct-menu-panel.open { transform: translateX(0); }

.pct-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #1e1e1e;
    flex-shrink: 0;
}
.pct-menu-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}
.pct-menu-logo-text {
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1;
}
.pct-menu-logo-sub {
    font-size: .58rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}
.pct-menu-close {
    background: none;
    border: 1px solid #333;
    color: #888;
    width: 30px; height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.pct-menu-close:hover { border-color: #888; color: #fff; }

.pct-menu-user {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #1e1e1e;
    font-size: .8rem;
    color: #888;
    flex-shrink: 0;
}
.pct-menu-user-name {
    font-weight: 700;
    color: #ccc;
    font-size: .85rem;
}
.pct-menu-section-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    padding: .85rem 1.25rem .35rem;
    flex-shrink: 0;
}
.pct-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: .35rem 0 1rem;
}
.pct-menu-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    text-decoration: none;
    color: #ccc;
    font-size: .9rem;
    font-weight: 600;
    transition: background .12s, color .12s;
    border-left: 3px solid transparent;
    cursor: pointer;
}
.pct-menu-item:hover {
    background: #1a1a1a;
    color: #fff;
    border-left-color: #BD0809;
}
.pct-menu-item.locked {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}
.pct-menu-item-emoji { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.pct-menu-item-label { flex: 1; }
.pct-menu-lock-badge {
    font-size: .6rem;
    font-weight: 700;
    background: rgba(189,8,9,.2);
    color: #BD0809;
    padding: .15rem .45rem;
    border-radius: 99px;
    flex-shrink: 0;
}
.pct-menu-divider { height: 1px; background: #1e1e1e; margin: .4rem 1.25rem; }
.pct-menu-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #1e1e1e;
    flex-shrink: 0;
}
.pct-menu-signin-prompt {
    display: none;
    flex-direction: column;
    gap: .45rem;
}
.pct-menu-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    padding: .6rem .75rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity .15s;
}
.pct-menu-signin-btn:hover { opacity: .85; }
.pct-menu-signin-google { background: #fff; color: #333; border: 1.5px solid #ddd; }
.pct-menu-signin-ms     { background: #2F2F2F; color: #fff; border: 1.5px solid #3a3a3a; }
.pct-menu-signout-btn {
    display: none;
    width: 100%;
    padding: .55rem;
    border-radius: 8px;
    background: none;
    border: 1px solid #333;
    color: #888;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all .15s;
}
.pct-menu-signout-btn:hover { border-color: #EF4444; color: #EF4444; }
/* ── End PCT Hamburger Menu ───────────────────────────────────────────────── */