/*
Theme Name: H820 Router
Theme URI: https://h820.co.uk
Author: H820.co.uk
Author URI: https://h820.co.uk
Description: A dedicated theme for the Proroute H820 4G Router - industrial IoT connectivity authority site.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: h820-theme
Tags: industrial, router, 4g, iot, single-product
*/

/* =========================================
   CSS RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    background: #fff;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #e85c00; text-decoration: none; transition: color .2s; }
a:hover { color: #c44d00; }
ul { list-style: none; }

/* =========================================
   CSS VARIABLES
========================================= */
:root {
    --navy:        #0f1f30;
    --navy-mid:    #1a3044;
    --navy-light:  #2a4560;
    --orange:      #e85c00;
    --orange-dark: #c44d00;
    --orange-glow: rgba(232,92,0,.15);
    --white:       #ffffff;
    --off-white:   #f7f9fc;
    --light-grey:  #e8edf2;
    --mid-grey:    #6b7a8d;
    --text:        #2d3748;
    --radius:      8px;
    --shadow:      0 4px 20px rgba(15,31,48,.12);
    --shadow-lg:   0 8px 40px rgba(15,31,48,.18);
    --max-width:   1200px;
    --transition:  .25s ease;
}

/* =========================================
   UTILITIES
========================================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy-mid { background: var(--navy-mid); color: var(--white); }
.bg-off-white { background: var(--off-white); }
.lead { font-size: 1.15rem; color: var(--mid-grey); max-width: 680px; line-height: 1.8; }
.lead-center { margin: 0 auto; }
.badge {
    display: inline-block;
    background: var(--orange-glow);
    color: var(--orange);
    border: 1px solid var(--orange);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.section-title { margin-bottom: 8px; }
.section-sub { font-size: 1.05rem; color: var(--mid-grey); max-width: 620px; margin: 0 auto 48px; }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .95rem; letter-spacing: .02em;
    padding: 14px 28px; border-radius: var(--radius);
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition);
    text-decoration: none; line-height: 1;
}
.btn-primary {
    background: var(--orange); color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,92,0,.35);
}
.btn-outline {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white);
}
.btn-outline-dark {
    background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================
   SITE HEADER
========================================= */
#site-header {
    position: sticky; top: 0; z-index: 999;
    background: var(--navy);
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.site-logo a {
    display: flex; align-items: center; gap: 10px;
    color: var(--white); font-weight: 800; font-size: 1.25rem;
    text-decoration: none;
}
.site-logo .logo-h { color: var(--orange); }
.site-logo .logo-sub {
    font-size: .7rem; font-weight: 400; color: rgba(255,255,255,.55);
    letter-spacing: .08em; text-transform: uppercase;
    display: block; line-height: 1;
}

#primary-nav ul {
    display: flex; align-items: center; gap: 4px;
}
#primary-nav ul li a {
    color: rgba(255,255,255,.8); font-weight: 500; font-size: .9rem;
    padding: 8px 14px; border-radius: 6px;
    transition: all var(--transition);
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item a {
    background: rgba(255,255,255,.1); color: var(--white);
}
.nav-cta a {
    background: var(--orange) !important; color: var(--white) !important;
    border-radius: var(--radius) !important; padding: 8px 18px !important;
    font-weight: 700 !important;
}
.nav-cta a:hover { background: var(--orange-dark) !important; }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--white);
}
.menu-toggle svg { width: 26px; height: 26px; }
#mobile-nav-close {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; color: var(--white);
}
#mobile-nav-close svg { width: 24px; height: 24px; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
    background: linear-gradient(135deg, #07111b 0%, var(--navy) 40%, var(--navy-mid) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 800px 600px at 70% 50%, rgba(232,92,0,.07), transparent);
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 60px;
    position: relative; z-index: 1;
}
.hero-content { color: var(--white); }
.hero-model {
    font-size: .8rem; font-weight: 700; letter-spacing: .15em;
    text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.hero-title { font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--white); margin-bottom: 20px; }
.hero-title span { color: var(--orange); }
.hero-desc { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; max-width: 500px; }
.hero-pills {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px;
}
.pill {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600;
    padding: 6px 14px; border-radius: 50px;
    display: flex; align-items: center; gap: 6px;
}
.pill .dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-image-wrap {
    position: relative; display: flex;
    align-items: center; justify-content: center;
}
.hero-image-wrap::before {
    content: ''; position: absolute;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(232,92,0,.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-image-wrap img {
    max-width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
    position: relative; z-index: 1;
}
.hero-stats {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 48px; padding-top: 32px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    position: relative; z-index: 1;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 1.8rem; font-weight: 800; color: var(--orange); line-height: 1;
    display: block; margin-bottom: 4px;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }

/* =========================================
   FEATURES / HIGHLIGHTS
========================================= */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    margin-top: 0;
}
.feature-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--light-grey);
    padding: 32px 28px;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}
.feature-icon {
    width: 52px; height: 52px;
    background: var(--orange-glow);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    color: var(--orange);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { color: var(--navy); margin-bottom: 10px; }
.feature-card p { color: var(--mid-grey); font-size: .93rem; }

/* =========================================
   SPECS SECTION
========================================= */
.specs-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.specs-image-col img {
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    width: 100%;
}
.specs-image-col .caption {
    font-size: .82rem; color: var(--mid-grey); margin-top: 10px; text-align: center;
}
.spec-table {
    width: 100%; border-collapse: collapse; margin-bottom: 24px;
}
.spec-table tr { border-bottom: 1px solid var(--light-grey); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td {
    padding: 10px 12px; font-size: .92rem; vertical-align: top;
}
.spec-table td:first-child {
    font-weight: 600; color: var(--navy-light);
    width: 44%; white-space: nowrap;
}
.spec-table td:last-child { color: var(--text); }
.spec-group-title {
    background: var(--navy); color: var(--white);
    font-weight: 700; font-size: .8rem; letter-spacing: .08em;
    text-transform: uppercase; padding: 8px 12px;
    border-radius: 4px 4px 0 0; margin-bottom: 0;
}
.spec-table-wrap {
    border: 1px solid var(--light-grey); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 24px;
}
.spec-table-wrap .spec-group-title { border-radius: 0; margin: 0; }

/* =========================================
   ANTENNA SECTION
========================================= */
.antenna-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: center;
}
.antenna-diagram {
    background: var(--navy); border-radius: var(--radius);
    padding: 32px; text-align: center;
}
.antenna-diagram img { margin: 0 auto 16px; max-width: 320px; }
.antenna-diagram .caption { color: rgba(255,255,255,.6); font-size: .85rem; }
.antenna-specs-list { display: flex; flex-direction: column; gap: 16px; }
.antenna-item {
    background: var(--white); border: 1px solid var(--light-grey);
    border-radius: var(--radius); padding: 20px 24px;
    display: flex; gap: 16px; align-items: flex-start;
}
.antenna-item-icon {
    width: 44px; height: 44px; background: var(--orange-glow);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--orange); flex-shrink: 0;
}
.antenna-item-icon svg { width: 22px; height: 22px; }
.antenna-item-title { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.antenna-item-desc { font-size: .9rem; color: var(--mid-grey); }
.antenna-note {
    background: rgba(232,92,0,.08); border-left: 4px solid var(--orange);
    padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .9rem; margin-top: 20px;
}
.antenna-note strong { color: var(--orange); }

/* =========================================
   APPLICATIONS
========================================= */
.apps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.app-card {
    background: var(--navy-mid); border-radius: var(--radius);
    padding: 28px 24px; color: var(--white);
    transition: all var(--transition);
}
.app-card:hover { background: var(--navy-light); transform: translateY(-3px); }
.app-card-icon {
    width: 48px; height: 48px;
    background: rgba(232,92,0,.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; color: var(--orange);
}
.app-card-icon svg { width: 24px; height: 24px; }
.app-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 8px; }
.app-card p { font-size: .87rem; color: rgba(255,255,255,.65); }

/* =========================================
   COMPARE SECTION
========================================= */
.compare-table-wrap {
    overflow-x: auto; margin-top: 40px;
}
.compare-table {
    width: 100%; border-collapse: collapse; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.compare-table th {
    background: var(--navy); color: var(--white);
    padding: 16px 20px; text-align: left; font-size: .9rem;
}
.compare-table th:not(:first-child) { text-align: center; }
.compare-table th.highlight { background: var(--orange); }
.compare-table td {
    padding: 12px 20px; font-size: .9rem;
    border-bottom: 1px solid var(--light-grey);
}
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--off-white); }
.compare-table td:first-child { font-weight: 600; color: var(--navy-light); }
.check { color: #22c55e; font-weight: 700; font-size: 1.1rem; }
.cross { color: #ef4444; font-weight: 700; font-size: 1.1rem; }
.compare-note {
    text-align: center; margin-top: 24px; font-size: .9rem; color: var(--mid-grey);
}

/* =========================================
   SETUP / QUICK START
========================================= */
.setup-steps {
    display: flex; flex-direction: column; gap: 20px;
    max-width: 780px; margin: 0 auto;
}
.setup-step {
    display: flex; gap: 24px; align-items: flex-start;
    background: var(--white); border: 1px solid var(--light-grey);
    border-radius: var(--radius); padding: 24px;
    transition: all var(--transition);
}
.setup-step:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.step-num {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--orange); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; line-height: 1;
}
.step-content h4 { color: var(--navy); margin-bottom: 6px; }
.step-content p { color: var(--mid-grey); font-size: .92rem; }
.step-content code {
    background: var(--off-white); border: 1px solid var(--light-grey);
    padding: 2px 6px; border-radius: 4px; font-size: .88rem; color: var(--navy);
}

/* =========================================
   CTA BAND
========================================= */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, #0a2240 100%);
    padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232,92,0,.12), transparent 70%);
    border-radius: 50%;
}
.cta-band::after {
    content: ''; position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232,92,0,.08), transparent 70%);
    border-radius: 50%;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 540px; margin: 0 auto 36px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cta-trusted {
    margin-top: 28px; font-size: .82rem;
    color: rgba(255,255,255,.45); display: flex; gap: 20px;
    justify-content: center; flex-wrap: wrap; align-items: center;
}
.cta-trusted span { display: flex; align-items: center; gap: 5px; }

/* =========================================
   LINKS / RESOURCES
========================================= */
.resource-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.resource-card {
    background: var(--white); border: 1px solid var(--light-grey);
    border-radius: var(--radius); padding: 24px;
    transition: all var(--transition);
    display: flex; flex-direction: column; gap: 8px;
}
.resource-card:hover { border-color: var(--orange); box-shadow: var(--shadow); text-decoration: none; }
.resource-card .resource-type {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--orange);
}
.resource-card h4 { color: var(--navy); }
.resource-card p { font-size: .88rem; color: var(--mid-grey); flex: 1; }
.resource-arrow {
    color: var(--orange); font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; gap: 4px; margin-top: 4px;
}

/* =========================================
   H685 SECTION
========================================= */
.h685-strip {
    background: var(--off-white); border-top: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
}
.h685-inner {
    display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center;
}
.h685-badge {
    background: var(--navy); color: var(--white); display: inline-block;
    padding: 4px 12px; border-radius: 4px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.h685-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.h685-features .pill { background: var(--white); border-color: var(--light-grey); color: var(--mid-grey); font-size: .78rem; }

/* =========================================
   BREADCRUMBS
========================================= */
.breadcrumbs {
    background: var(--off-white); border-bottom: 1px solid var(--light-grey);
    padding: 12px 0;
}
.breadcrumbs nav { font-size: .83rem; color: var(--mid-grey); }
.breadcrumbs a { color: var(--mid-grey); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span.sep { margin: 0 6px; }
.breadcrumbs span.current { color: var(--text); }

/* =========================================
   PAGE HERO (inner pages)
========================================= */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 52px 0 48px; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 580px; margin: 0 auto; }

/* =========================================
   CONTENT PAGES
========================================= */
.content-wrap { max-width: 820px; margin: 0 auto; }
.content-wrap h2 { color: var(--navy); margin: 40px 0 16px; }
.content-wrap h3 { color: var(--navy-light); margin: 28px 0 12px; }
.content-wrap ul, .content-wrap ol { padding-left: 24px; margin-bottom: 1em; }
.content-wrap ul { list-style: disc; }
.content-wrap ol { list-style: decimal; }
.content-wrap li { margin-bottom: 6px; }

/* =========================================
   FOOTER
========================================= */
#site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: var(--white); font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.footer-brand .logo span { color: var(--orange); }
.footer-brand p { font-size: .88rem; line-height: 1.8; color: rgba(255,255,255,.55); }
.footer-col h5 {
    color: var(--white); font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom {
    padding: 20px 0;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    font-size: .8rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--orange); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================
   NOTICE / INFO BOX
========================================= */
.info-box {
    background: rgba(232,92,0,.06); border: 1px solid rgba(232,92,0,.25);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px; margin: 24px 0; font-size: .92rem;
}
.info-box strong { color: var(--orange); }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .h685-inner { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-wrap { order: -1; max-width: 340px; margin: 0 auto; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .specs-wrapper { grid-template-columns: 1fr; }
    .antenna-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
    .compare-table-wrap { overflow-x: auto; }
    #primary-nav {
        display: none; position: fixed; inset: 0; z-index: 9999;
        background: var(--navy); flex-direction: column;
        justify-content: center; align-items: center;
        padding: 40px 24px;
    }
    #primary-nav.open { display: flex; }
    #primary-nav ul { flex-direction: column; align-items: center; gap: 8px; }
    #primary-nav ul li a { font-size: 1.1rem; padding: 12px 24px; }
    .menu-toggle { display: flex; }
    #mobile-nav-close { display: flex; position: absolute; top: 20px; right: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-trusted { flex-direction: column; gap: 8px; }
    .section-pad { padding: 48px 0; }
}
@media (max-width: 480px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn-lg { width: 100%; justify-content: center; }
}
