/* ============================================================
   PC Power Tech — modern responsive rebuild
   Preserves the 2015 brand palette (#2532e0 blue, #eea021/#fcca46
   orange/gold, #807e7e grey). Written from scratch — no jQuery,
   no external dependencies, no PHP.
   ============================================================ */

:root {
    --pc-blue:       #2532e0;
    --pc-blue-dark:  #1a26b8;
    --pc-orange:     #eea021;
    --pc-gold:       #fcca46;
    --pc-grey:       #807e7e;
    --pc-grey-light: #f4f4f6;
    --pc-text:       #333;
    --pc-text-soft:  #777;
    --pc-white:      #ffffff;
    --max-width:     1140px;
    --pc-shadow:     0 2px 10px rgba(37, 50, 224, 0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--pc-text);
    background: linear-gradient(180deg, #eef1f9 0%, #f8f9fc 100%);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a   { color: var(--pc-blue); text-decoration: none; }
a:hover { color: var(--pc-orange); }

/* ── Wrapper ─────────────────────────────────────────────── */
.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    background: #fff;
    box-shadow: var(--pc-shadow);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header (CSS-only brand logo) ────────────────────────── */
.site-header {
    padding: 22px 30px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--pc-gold);
}
.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    font-weight: 900;
    font-size: 30px;
    letter-spacing: -1px;
    color: var(--pc-blue);
    line-height: 1;
}
.brand-pc {
    background: var(--pc-blue);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    margin-right: 2px;
}
.brand-power { color: var(--pc-blue); }
.brand-tech  { color: var(--pc-orange); }
.brand-tag {
    display: block;
    margin-left: 12px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pc-grey);
    border-left: 2px solid var(--pc-gold);
    padding-left: 10px;
    align-self: center;
}

.nav-toggle {
    display: none;
    background: var(--pc-blue);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 8px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
    background: var(--pc-blue);
}
.nav-main {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.nav-main > li { position: relative; }
.nav-main > li > a {
    display: block;
    padding: 14px 22px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.15s;
}
.nav-main > li > a:hover,
.nav-main > li.open > a,
.nav-main > li:hover > a {
    background: var(--pc-blue-dark);
    color: var(--pc-gold);
}
.nav-main > li.active > a {
    background: var(--pc-gold);
    color: var(--pc-blue);
    border-bottom: 3px solid var(--pc-orange);
    margin-bottom: -3px;
}
.caret { font-size: 10px; margin-left: 2px; opacity: 0.7; }

/* Dropdown */
.site-nav ul.sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-top: 3px solid var(--pc-orange);
    z-index: 100;
}
.site-nav .has-sub:hover > ul.sub,
.site-nav .has-sub.open > ul.sub {
    display: block;
}
.site-nav ul.sub li { position: relative; }
.site-nav ul.sub a {
    display: block;
    padding: 10px 18px;
    color: var(--pc-text);
    font-size: 13px;
    text-transform: none;
    font-weight: normal;
}
.site-nav ul.sub a:hover {
    background: var(--pc-grey-light);
    color: var(--pc-blue);
    padding-left: 22px;
}
/* Nested submenus fly out to the right */
.site-nav ul.sub ul.sub {
    top: -6px;
    left: 100%;
    border-top: none;
    border-left: 3px solid var(--pc-orange);
}

/* ── Main content area ───────────────────────────────────── */
.main-body {
    padding: 32px 40px;
    flex: 1;
    min-height: 400px;
}
.content-inner { max-width: 900px; }

/* Original class hooks used by extracted page markup */
.pageheader,
h1.pageheader {
    font-size: 26px;
    color: var(--pc-blue);
    font-weight: bold;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pc-gold);
    text-transform: none;
}
.bodytext {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pc-text);
}
.bodytext p { margin: 0 0 16px; }
.bodytext ul { padding-left: 22px; margin: 0 0 20px; }
.bodytext ul li { margin: 4px 0; }
.bodytext h1 { font-size: 20px; color: var(--pc-blue); margin: 0 0 16px; font-weight: bold; line-height: 1.4; }
.bodytext h2 { font-size: 18px; color: var(--pc-blue); margin: 22px 0 12px; }
.bodytext table { border-collapse: collapse; margin: 20px 0; max-width: 100%; }
.bodytext td, .bodytext th { padding: 6px 12px; vertical-align: top; }
.bodytext a { color: var(--pc-blue); text-decoration: underline; }
.bodytext a:hover { color: var(--pc-orange); }

/* Pricing table (Microsoft 365 page) */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
}
.pricing-table thead th {
    background: var(--pc-blue);
    color: #fff;
    font-weight: bold;
    padding: 14px 12px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}
.pricing-table thead th:last-child {
    text-align: center;
    background: var(--pc-blue-dark);
}
.pricing-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:nth-child(odd) { background: var(--pc-grey-light); }
.pricing-table tbody td:last-child {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--pc-blue);
    white-space: nowrap;
    border-left: 3px solid var(--pc-gold);
    background: rgba(252, 202, 70, 0.08);
}
.pricing-table small {
    color: var(--pc-text-soft);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Homepage-specific bits */
.productoverview {
    background: var(--pc-grey-light);
    border-left: 4px solid var(--pc-orange);
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: 4px;
}
.po_header {
    font-size: 20px;
    font-weight: bold;
    color: var(--pc-blue);
    margin-bottom: 12px;
}
.po_text ul {
    columns: 2;
    column-gap: 30px;
    padding-left: 18px;
    margin: 0;
    font-size: 14px;
}
.po_text ul li { margin: 3px 0; break-inside: avoid; }
.home_text { margin-top: 20px; }

/* Hero panel replacing the old .righthandler sidebar */
.hero-panel {
    background: linear-gradient(135deg, var(--pc-blue) 0%, var(--pc-blue-dark) 100%);
    color: #fff;
    padding: 36px 30px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-panel::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--pc-gold) 0%, transparent 70%);
    opacity: 0.3;
}
.hero-panel h1 {
    color: #fff;
    font-size: 26px;
    margin: 0 0 12px;
    font-weight: bold;
    line-height: 1.3;
}
.hero-panel p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    margin: 0 0 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: inline-block;
    background: var(--pc-gold);
    color: var(--pc-blue);
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-cta:hover {
    background: var(--pc-orange);
    color: #fff;
    transform: translateY(-1px);
}

/* Kill any stray legacy elements that survived extraction */
.rightimage, .slide-holder, #slide-holder, #slide-runner,
.slide, #slide-controls, .myform, .captcha,
form[action*="forminvoke"] { display: none !important; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--pc-blue);
    color: #fff;
    margin-top: 40px;
}
.footer-inner {
    padding: 26px 40px;
    text-align: center;
    font-size: 13px;
}
.footer-inner a { color: var(--pc-gold); text-decoration: none; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-contact { margin-bottom: 12px; line-height: 1.7; }
.footer-links {
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 12px;
}
.footer-links a { margin: 0 15px; font-weight: bold; }
.footer-copy { font-size: 12px; opacity: 0.8; }

/* ── Mobile responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .site-header { padding: 16px 20px; flex-wrap: wrap; }
    .brand { font-size: 22px; }
    .brand-tag { display: none; }
    .nav-toggle { display: flex; }

    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-main { flex-direction: column; }
    .nav-main > li > a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 14px 20px;
    }
    .nav-main > li.active > a { border-bottom: 3px solid var(--pc-orange); margin-bottom: 0; }

    /* Nested menus become inline expanded lists on mobile */
    .site-nav ul.sub {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.15);
        padding: 0;
        border-top: none;
    }
    .site-nav .has-sub.open > ul.sub { display: block; }
    .site-nav ul.sub a {
        color: #fff;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .site-nav ul.sub a:hover {
        background: rgba(0,0,0,0.2);
        color: var(--pc-gold);
        padding-left: 32px;
    }
    .site-nav ul.sub ul.sub {
        border-left: none;
        background: rgba(0,0,0,0.15);
    }
    .site-nav ul.sub ul.sub a { padding-left: 42px; }
    .site-nav ul.sub ul.sub ul.sub a { padding-left: 54px; }

    .main-body { padding: 22px 20px; }
    .po_text ul { columns: 1; }
    .hero-panel { padding: 26px 20px; }
    .hero-panel h1 { font-size: 22px; }
    .footer-inner { padding: 22px 20px; }
    .footer-links a { display: inline-block; margin: 4px 8px; }

    /* Pricing table on mobile: stack cells */
    .pricing-table thead { display: none; }
    .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td {
        display: block;
        width: 100%;
    }
    .pricing-table tr {
        margin-bottom: 16px;
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
    }
    .pricing-table tbody tr:nth-child(odd) { background: #fff; }
    .pricing-table tbody td {
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 14px;
    }
    .pricing-table tbody td:last-child {
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--pc-gold);
        background: rgba(252, 202, 70, 0.12);
        padding: 14px;
    }
    .pricing-table tbody td:last-child::before {
        content: "Price (month-to-month): ";
        display: inline;
        color: var(--pc-text);
        font-weight: normal;
        font-size: 13px;
        text-transform: none;
    }
}

@media (max-width: 500px) {
    .pageheader, h1.pageheader { font-size: 22px; }
    .brand-pc { padding: 3px 6px; }
    .brand { font-size: 20px; gap: 4px; }
}

/* Print */
@media print {
    .site-nav, .nav-toggle, .site-footer { display: none; }
    .wrapper { box-shadow: none; }
    body { background: #fff; }
}
