/*
Theme Name: CloseMonitor
Theme URI: https://www.closemonitor.com
Author: CloseMonitor
Author URI: https://www.closemonitor.com
Description: Remote Worker Monitoring Software - CloseMonitor WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: closemonitor
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --success: #10b981;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(79,70,229,0.10);
    --shadow-lg: 0 8px 48px rgba(79,70,229,0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }

.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 3.5rem;
    font-size: 1.05rem;
}

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-alt { background: var(--light-bg); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.45);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}
.btn-white:hover { background: var(--light-bg); color: var(--primary-dark); transform: translateY(-2px); }

/* ===== HEADER / NAV ===== */
#masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
}
.site-logo span { color: var(--primary); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-menu li a {
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.92rem;
    transition: all 0.2s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--primary);
    background: rgba(79,70,229,0.08);
}
.nav-menu .nav-btn a {
    background: var(--primary);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 8px;
}
.nav-menu .nav-btn a:hover { background: var(--primary-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #1a1060 100%);
    color: var(--white);
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79,70,229,0.2);
    border: 1px solid rgba(79,70,229,0.4);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 1.2rem;
}
.hero h1 em {
    font-style: normal;
    color: var(--primary-light);
}
.hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--white);
    font-weight: 800;
}
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}
.dashboard-bar {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-dot.green { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dash-dot.blue  { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dash-dot.yellow { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.dash-info { flex: 1; }
.dash-name { font-size: 0.78rem; color: rgba(255,255,255,0.8); font-weight: 500; margin-bottom: 4px; }
.dash-bar-outer { height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.dash-bar-inner { height: 100%; border-radius: 4px; }
.dash-bar-inner.g { background: var(--success); width: 82%; }
.dash-bar-inner.b { background: var(--accent); width: 65%; }
.dash-bar-inner.y { background: #f59e0b; width: 48%; }
.dash-pct { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.hero-card-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
}

/* ===== WHY SECTION ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 0;
}
.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}
.why-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.why-card:hover::before { opacity: 1; }
.why-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(79,70,229,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}
.why-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.why-card p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* ===== HOW IT WORKS ===== */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    position: relative;
}
.hiw-step {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.3s;
}
.hiw-step:hover { box-shadow: var(--shadow); }
.hiw-num {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}
.hiw-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.hiw-step p { color: var(--text-light); font-size: 0.88rem; margin: 0; }

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.feature-item:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.feature-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(79,70,229,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--primary);
}
.feature-text h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature-text p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: start;
}
.price-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.price-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.04);
    background: linear-gradient(180deg, rgba(79,70,229,0.04) 0%, var(--white) 100%);
}
.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.price-name { font-size: 0.85rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.price-users { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.price-old { font-size: 1rem; color: var(--text-light); text-decoration: line-through; margin-bottom: 0.2rem; }
.price-current {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.price-current sup { font-size: 1.2rem; vertical-align: top; margin-top: 6px; }
.price-per { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1.6rem; }
.price-features { text-align: left; margin-bottom: 2rem; }
.price-features li {
    padding: 7px 0;
    font-size: 0.88rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.price-card .btn { width: 100%; justify-content: center; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: box-shadow 0.3s;
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text); font-size: 0.95rem; font-style: italic; margin-bottom: 1.4rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.author-info strong { font-size: 0.9rem; display: block; color: var(--dark); }
.author-info span { font-size: 0.8rem; color: var(--text-light); }

/* ===== STATS BANNER ===== */
.stats-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 64px 0;
    color: var(--white);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 90px 0;
    text-align: center;
    color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 2.4rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); margin-bottom: 2rem; }
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.2rem;
    padding: 16px;
    background: var(--light-bg);
    border-radius: 10px;
}
.contact-detail-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(79,70,229,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--primary);
}
.contact-detail strong { display: block; font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-detail span { color: var(--dark); font-weight: 500; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--light-bg);
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
#colophon {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 32px;
}
.footer-brand .site-logo { color: var(--white); margin-bottom: 1rem; display: block; font-size: 1.3rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.4rem; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 1rem; font-weight: 600; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1060 100%);
    color: var(--white);
    padding: 80px 0 70px;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.8rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: var(--white);
    border: none;
    padding: 20px 24px;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--light-bg); }
.faq-question .icon { font-size: 1.2rem; transition: transform 0.3s; color: var(--primary); }
.faq-question.active .icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.92rem;
    color: var(--text-light);
}
.faq-answer.open { max-height: 300px; padding: 0 24px 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .price-card.featured { transform: none; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
    .cta-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
