/*
Theme Name: Coon Solutions
Theme URI: https://coon-solutions.com
Author: Coon Solutions
Author URI: https://coon-solutions.com
Description: A professional, minimalistic theme for Coon Solutions - Email Campaign Manager. Helping businesses build authentic relationships with their audience through thoughtful email communication.
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: coon-solutions
Tags: one-column, custom-menu, featured-images, full-width-template, custom-logo
*/

/* ============================================
   CSS Variables & Design System
   ============================================ */
:root {
    /* Color Palette - Sophisticated & Trustworthy */
    --color-primary: #1a365d;        /* Deep navy - trust & professionalism */
    --color-primary-light: #2c5282;
    --color-primary-dark: #0f2744;
    --color-accent: #38a169;         /* Sage green - growth & success */
    --color-accent-light: #48bb78;
    --color-accent-dark: #276749;
    
    /* Neutrals */
    --color-bg: #fafbfc;
    --color-bg-alt: #f1f5f9;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --max-width-text: 680px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

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

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

a:hover {
    color: var(--color-accent);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-lg);
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ============================================
   Layout Components
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.container--text {
    max-width: var(--max-width-text);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-primary-dark);
    color: #fff;
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section--dark .lead {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.site-logo svg {
    width: 40px;
    height: 40px;
}

.site-logo:hover {
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: var(--space-sm) 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--color-primary);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-primary);
    color: #fff !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--color-accent);
    color: #fff !important;
    transform: translateY(-1px);
}

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

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        display: none;
    }
    
    .main-nav.active {
        display: flex;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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");
    opacity: 0.5;
}

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

.hero h1 {
    color: #fff;
    margin-bottom: var(--space-lg);
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.375rem;
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   Features Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.feature-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-xl);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Values / Trust Section
   ============================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.value-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.value-content h4 {
    margin-bottom: var(--space-xs);
    color: var(--color-primary-dark);
}

.value-content p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta-section h2 {
    margin-bottom: var(--space-md);
}

.cta-section .lead {
    margin-bottom: var(--space-2xl);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .site-logo {
    color: #fff;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-nav h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

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

.footer-nav li {
    margin-bottom: var(--space-sm);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.875rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: var(--space-lg);
}

.footer-legal a:hover {
    color: var(--color-accent);
}

/* ============================================
   Page Content
   ============================================ */
.page-header {
    background: var(--color-primary-dark);
    color: #fff;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.page-content {
    padding: var(--space-3xl) 0;
}

.page-content h2 {
    margin-top: var(--space-2xl);
}

.page-content h3 {
    margin-top: var(--space-xl);
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.page-content li {
    margin-bottom: var(--space-sm);
}

/* ============================================
   Compliance Badge
   ============================================ */
.compliance-badges {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.compliance-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

