/*
Theme Name:   maverickClick v2
Theme URI:    https://maverickclick.com
Author:       Computer Solutions
Author URI:   https://connecticutcs.com
Description:  Modernized v2 theme for maverickClick — sticky nav, icon service cards, FAQ accordion, trust badges, polished footer.
Version:      2.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  maverickclick
Tags:         custom-menu, featured-images, responsive-layout, full-width-template
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
    --color-primary:       #0f2d5e;
    --color-primary-dark:  #091e3f;
    --color-primary-light: #1a4a8a;
    --color-accent:        #f26522;
    --color-accent-dark:   #d4521a;
    --color-accent-light:  #ff8c4a;

    --color-text:          #1a1a2e;
    --color-text-muted:    #64748b;
    --color-text-light:    #94a3b8;

    --color-bg:            #ffffff;
    --color-bg-alt:        #f8fafc;
    --color-bg-dark:       #0a1628;

    --color-border:        #e2e8f0;
    --color-border-dark:   #cbd5e1;

    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;

    --font-normal:  400;
    --font-medium:  500;
    --font-semibold:600;
    --font-bold:    700;

    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --container-max:     1200px;
    --container-padding: 1.5rem;

    --radius-sm:   0.375rem;
    --radius-md:   0.625rem;
    --radius-lg:   1rem;
    --radius-xl:   1.5rem;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl:  0 20px 40px rgba(0,0,0,0.12);

    --transition-fast:   150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow:   400ms ease;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Header — Sticky, Dark
   ========================================================================== */
.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: var(--space-6);
}
/* Branding */
.site-branding { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.site-title { font-size: 1.4rem; font-weight: var(--font-bold); line-height: 1; }
.site-title a { color: #fff; }
.site-title a:hover { color: var(--color-accent-light); }
.site-description { font-size: var(--text-xs); color: rgba(255,255,255,0.65); margin: 0; }

/* Nav */
.main-navigation { display: flex; align-items: center; gap: var(--space-4); }
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin: 0; padding: 0;
}
.nav-menu a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255,255,255,0.88);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
/* Header phone CTA */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.45rem 1.1rem;
    background: var(--color-accent);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    white-space: nowrap;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.header-phone:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }
.header-phone svg { flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    color: #fff;
    transition: border-color var(--transition-fast);
}
.menu-toggle:hover { border-color: #fff; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: all var(--transition-fast); }

@media (max-width: 900px) {
    .menu-toggle { display: flex; flex-direction: column; align-items: center; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-4);
        gap: var(--space-1);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu a { width: 100%; padding: 0.6rem 1rem; }
    .header-phone { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a6b 60%, #0d2247 100%);
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(242,101,34,0.18);
    color: var(--color-accent-light);
    border: 1px solid rgba(242,101,34,0.3);
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.hero h1 span { color: var(--color-accent-light); }
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.25rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-base); }

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
}
.trust-item svg { color: var(--color-accent); flex-shrink: 0; }
.trust-item strong { color: var(--color-primary); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: rgba(255,255,255,0.88); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-subtitle { font-size: var(--text-lg); color: var(--color-text-muted); }

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-border-dark); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(15,45,94,0.1), rgba(242,101,34,0.08));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 1.25rem; }
.service-link {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition-fast);
}
.service-link:hover { color: var(--color-accent-dark); gap: 0.5rem; }

/* ==========================================================================
   Why Choose Us — Checklist
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}
.why-check {
    width: 24px; height: 24px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.why-check svg { width: 13px; height: 13px; color: #fff; }
.why-item-body h4 { font-size: var(--text-sm); font-weight: var(--font-bold); margin-bottom: 0.2rem; }
.why-item-body p { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--font-bold);
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label { font-size: var(--text-sm); color: rgba(255,255,255,0.72); }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.15rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-question.is-open { background: var(--color-bg-alt); color: var(--color-primary); }
.faq-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.faq-question.is-open .faq-icon { background: var(--color-accent); transform: rotate(45deg); }
.faq-icon svg { width: 12px; height: 12px; }
.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}
.faq-answer.is-open { display: block; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c4511a 100%);
    padding: 4rem 0;
    text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.88); font-size: var(--text-lg); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.btn-white { background: #fff; color: var(--color-accent); border-color: #fff; }
.btn-white:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-white-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-white-outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-bg-dark); color: #94a3b8; }
.footer-body {
    padding: 4rem 0 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media (max-width: 900px) { .footer-body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-body { grid-template-columns: 1fr; } }
.footer-brand .site-title { font-size: 1.3rem; }
.footer-brand .site-title a { color: #fff; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; margin: 0.75rem 0 1.25rem; }
.footer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-light);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}
.footer-phone-link:hover { color: #fff; }
.footer-col h4 { font-size: var(--text-sm); font-weight: var(--font-bold); color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a { font-size: var(--text-sm); color: #94a3b8; transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: #fff; }
.footer-address { font-size: var(--text-sm); line-height: 1.8; }
.footer-address a { color: var(--color-accent-light); }
.footer-address a:hover { color: #fff; }
.footer-bottom {
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: var(--text-xs);
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Page / Single content
   ========================================================================== */
.page-hero {
    background: var(--color-primary);
    padding: 3.5rem 0;
    text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: var(--text-lg); }
.page-content { padding: 4rem 0; }
.page-content .entry-content { max-width: 780px; margin: 0 auto; font-size: var(--text-base); line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: var(--text-sm);
}
.contact-detail svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-form-wrap h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: var(--text-sm); font-weight: var(--font-semibold); margin-bottom: 0.4rem; color: var(--color-text); }
input[type=text], input[type=email], input[type=tel], textarea, select {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15,45,94,0.1);
}
textarea { resize: vertical; min-height: 130px; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: 6rem 0; }
.error-404 .big-num { font-size: 8rem; font-weight: 800; color: var(--color-border-dark); line-height: 1; }

/* ==========================================================================
   Fade-in animation
   ========================================================================== */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
/* Ensure sections are visible if JS doesn't fire */
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive helpers
   ========================================================================== */
@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .services-grid { grid-template-columns: 1fr; }
    .hero { padding: 4rem 0 3.5rem; }
    .footer-body { gap: 2rem; }
}
