/* ===================================
   TrustLocal Audits - Professional Styling
   Modern, Secure, Formal Design
   =================================== */

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

:root {
    /* Aqua/Teal - matching the logo for cohesive design */
    --primary: #14b8a6;
    --primary-light: #2dd4bf;
    --primary-dark: #0f766e;
    --primary-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    
    /* Same color for logo - unified brand */
    --logo-color: #14b8a6;
    --logo-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-gold: #f59e0b;
    --accent-silver: #94a3b8;
    --accent-bronze: #d97706;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: var(--font-sans);
    color: #e6edf3;
    background: #0d1117;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6edf3;
}

.brand-suffix {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid #30363d;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-gradient);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #e6edf3;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #7d8590;
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #7d8590;
    font-weight: 500;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

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

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   Trust Section
   =================================== */

.trust-section {
    padding: var(--spacing-2xl) 0;
    background: #0d1117;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.trust-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.trust-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--primary);
}

.trust-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: var(--spacing-sm);
}

.trust-item p {
    color: #7d8590;
    font-size: 0.95rem;
}

/* ===================================
   Section Headers
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e6edf3;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #7d8590;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   What We Audit Section
   =================================== */

.what-we-audit {
    padding: var(--spacing-2xl) 0;
    background: #161b22;
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.audit-card {
    background: #0d1117;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid #30363d;
    transition: all 0.3s;
}

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

.audit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.audit-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke-width: 2;
}

.audit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: var(--spacing-sm);
}

.audit-card > p {
    color: #7d8590;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.audit-checklist {
    list-style: none;
    padding-left: 0;
}

.audit-checklist li {
    padding: var(--spacing-xs) 0;
    color: #7d8590;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.audit-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===================================
   Methodology Section
   =================================== */

.methodology {
    padding: var(--spacing-2xl) 0;
    background: #0d1117;
}

.methodology-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.methodology-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #30363d;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-top: var(--spacing-xs);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: var(--spacing-sm);
}

.timeline-content p {
    color: #7d8590;
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.timeline-duration {
    display: inline-block;
    background: #161b22;
    color: #7d8590;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #30363d;
}

/* ===================================
   Certification Section
   =================================== */

.certification-section {
    padding: var(--spacing-2xl) 0;
    background: #161b22;
}

.certification-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.certification-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.certification-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.certification-list {
    list-style: none;
    padding: 0;
}

.certification-list li {
    display: flex;
    align-items: start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    color: var(--gray-700);
}

.certification-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.certification-levels {
    margin-top: var(--spacing-xl);
}

.level-badges {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.level-badge {
    flex: 1;
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid;
    background: #0d1117;
    transition: all 0.3s;
}

.level-badge:hover {
    transform: translateY(-2px);
}

.level-badge.teal {
    border-color: #14b8a6;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
}

.level-badge.purple {
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.level-badge.blue {
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.level-badge.teal .badge-icon {
    color: #14b8a6;
}

.level-badge.purple .badge-icon {
    color: #a78bfa;
}

.level-badge.blue .badge-icon {
    color: #60a5fa;
}

.badge-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: #e6edf3;
}

.badge-desc {
    font-size: 0.9rem;
    color: #7d8590;
}

.certification-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-preview {
    text-align: center;
}

.badge-preview svg {
    width: 100%;
    max-width: 250px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.badge-caption {
    margin-top: var(--spacing-md);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===================================
   Pricing Section
   =================================== */

.pricing-section {
    padding: var(--spacing-2xl) 0;
    background: #0d1117;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: var(--spacing-lg);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: var(--spacing-sm) 0;
}

.price-desc {
    color: #7d8590;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: var(--spacing-sm) 0;
    color: #7d8590;
    position: relative;
    padding-left: 1.75rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.125rem;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.logo-small {
    width: 32px;
    height: 32px;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.footer-contact p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: var(--spacing-xs) 0;
}

.footer-section h4 {
    color: white;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: var(--spacing-xs) 0;
}

.footer-note {
    font-size: 0.8rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .audit-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certification-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .trust-grid,
    .audit-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .level-badges {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Animations
   =================================== */

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

.hero-content,
.audit-card,
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
