/*
Theme Name: Nova Signal-AI
Theme URI: https://novasignal-ai.online
Author: Nova Signal-AI
Author URI: https://novasignal-ai.online
Description: Professional AI-powered digital agency theme with USA/Canada region support, contact forms, Google Maps, pricing calculator, Twilio SMS, AI chatbot, and full admin page management. Built for Nova Signal-AI.
Version: 3.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novasignal-ai
Tags: ai, digital-agency, responsive, usa, canada, contact-form, google-maps, sms, pricing, chatbot, admin
*/

/* ===== THEME BASE ===== */
:root {
    --ns-primary: #1F4E78;
    --ns-secondary: #C0392B;
    --ns-accent: #27AE60;
    --ns-dark: #2C3E50;
    --ns-light: #F8F9FA;
    --ns-white: #FFFFFF;
    --ns-border: #E0E0E0;
    --ns-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --ns-radius: 12px;
    --ns-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ns-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--ns-font);
    color: var(--ns-dark);
    line-height: 1.6;
    background: #f5f6f8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ns-primary); text-decoration: none; transition: var(--ns-transition); }
a:hover { color: var(--ns-secondary); }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, var(--ns-primary) 0%, #2C5F8E 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span { opacity: 0.9; font-weight: 400; font-size: 14px; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after { width: 100%; }

.main-nav a:hover { color: #fff; }

.nav-cta {
    background: var(--ns-secondary);
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 30px;
    font-weight: 700 !important;
    transition: var(--ns-transition);
}

.nav-cta:hover {
    background: #A93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}

.nav-cta::after { display: none !important; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--ns-primary) 0%, #1a3a5c 100%);
    color: #fff;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--ns-transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--ns-secondary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}

.btn-primary:hover {
    background: #A93226;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192,57,43,0.4);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== CONTENT AREA ===== */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 36px;
    color: var(--ns-primary);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.service-card {
    background: #fff;
    border-radius: var(--ns-radius);
    padding: 32px;
    box-shadow: var(--ns-shadow);
    transition: var(--ns-transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--ns-primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--ns-dark);
    margin-bottom: 8px;
}

.service-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: #fff;
    padding: 80px 24px;
    margin: 40px -24px;
}

.features-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--ns-primary);
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 24px;
}

.feature-item .feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ns-primary), #2C5F8E);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--ns-dark);
}

.feature-item p {
    font-size: 14px;
    color: #888;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--ns-primary) 0%, #2C5F8E 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    margin: 40px -24px;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--ns-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 24px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
}

/* ===== PAGE TEMPLATES ===== */
.page-template-contact .site-content,
.page-template-pricing .site-content,
.page-template-services .site-content,
.page-template-map .site-content {
    max-width: 1000px;
}

/* ===== PLUGIN INTEGRATION STYLES ===== */
/* Ensure plugin forms look great in theme */
.novasignal-contact-form,
.novasignal-region-selector,
.novasignal-pricing-table,
.novasignal-map-container {
    margin: 0 auto;
}

/* Ensure plugin CSS loads after theme (handled in functions.php) */

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { padding: 12px 16px; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }

    .hero-section { padding: 60px 16px; }
    .hero-section h1 { font-size: 32px; }
    .hero-section p { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }

    .site-content { padding: 40px 16px; }
    .page-header h1 { font-size: 28px; }

    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }

    .footer-bottom { margin-top: 32px; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
