/**
 * SSG Theme - Dark Red & Grey
 * Professional theme for Static Site Generation pages
 * Optimized for conversions and SEO
 */

:root {
    /* Primary Red Colors */
    --primary-red: #8B0000;
    --accent-red: #A52A2A;
    --light-red: #CD5C5C;
    --hover-red: #B22222;
    --bright-red: #DC143C;
    
    /* Grey Scale */
    --dark-grey: #1a1a1a;
    --medium-grey: #2d2d2d;
    --light-grey: #4a4a4a;
    --border-grey: #3a3a3a;
    --text-grey: #e0e0e0;
    --muted-grey: #888888;
    --hover-grey: #353535;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --off-white: #f5f5f5;
    
    /* Semantic Colors */
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-grey);
    color: var(--text-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-grey);
}

a {
    color: var(--light-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--hover-red);
    text-decoration: none;
}

/* Ensure button text stays visible on hover */
.ssg-btn:hover {
    color: var(--white);
    text-decoration: none;
}

strong {
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.ssg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.ssg-section {
    padding: var(--spacing-2xl) 0;
}

.ssg-section-alt {
    background-color: var(--medium-grey);
}

/* ============================================
   HERO SECTION
   ============================================ */

.ssg-hero {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--medium-grey) 50%, var(--primary-red) 100%);
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.ssg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.ssg-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ssg-hero-badge {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.ssg-hero-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--spacing-md);
}

.ssg-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-grey);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.ssg-hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* ============================================
   BUTTONS
   ============================================ */

.ssg-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.ssg-btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.ssg-btn-primary:hover {
    background: var(--hover-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ssg-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.ssg-btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ssg-btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* ============================================
   CARDS & BOXES
   ============================================ */

.ssg-card {
    background: var(--medium-grey);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.ssg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.ssg-card-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.ssg-card-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.ssg-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.ssg-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ssg-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ssg-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.ssg-features {
    padding: var(--spacing-2xl) 0;
}

.ssg-feature-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.ssg-feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.ssg-feature-content h3 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.ssg-feature-content p {
    color: var(--text-grey);
}

/* ============================================
   PRICING SECTION
   ============================================ */

.ssg-pricing-card {
    background: var(--medium-grey);
    border: 2px solid var(--border-grey);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.ssg-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
}

.ssg-pricing-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-xl);
}

.ssg-pricing-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.ssg-pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    margin: var(--spacing-md) 0;
}

.ssg-pricing-price span {
    font-size: 1.5rem;
    color: var(--muted-grey);
}

.ssg-pricing-features {
    list-style: none;
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.ssg-pricing-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.ssg-pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ============================================
   PROCESS / STEPS SECTION
   ============================================ */

.ssg-process {
    padding: var(--spacing-2xl) 0;
    background: var(--medium-grey);
}

.ssg-step {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.ssg-step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.ssg-step:not(:last-child) .ssg-step-number::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: var(--border-grey);
}

.ssg-step-content {
    flex: 1;
}

.ssg-step-content h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.ssg-step-content p {
    color: var(--text-grey);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.ssg-testimonial {
    background: var(--medium-grey);
    border-left: 4px solid var(--primary-red);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.ssg-testimonial-text {
    font-style: italic;
    color: var(--text-grey);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.8;
}

.ssg-testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.ssg-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.ssg-testimonial-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.ssg-testimonial-info p {
    color: var(--muted-grey);
    font-size: 0.875rem;
    margin: 0;
}

.ssg-testimonial-rating {
    color: var(--warning);
    margin-top: var(--spacing-xs);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.ssg-faq {
    padding: var(--spacing-2xl) 0;
}

.ssg-faq-item {
    background: var(--medium-grey);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.ssg-faq-item:hover {
    border-color: var(--primary-red);
}

.ssg-faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    user-select: none;
}

.ssg-faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--white);
}

.ssg-faq-icon {
    color: var(--primary-red);
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.ssg-faq-item.active .ssg-faq-icon {
    transform: rotate(180deg);
}

.ssg-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.ssg-faq-item.active .ssg-faq-answer {
    max-height: 500px;
}

.ssg-faq-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-grey);
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.ssg-cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    margin: var(--spacing-2xl) 0;
}

.ssg-cta-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.ssg-cta-section p {
    color: var(--off-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.ssg-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   STATS / NUMBERS SECTION
   ============================================ */

.ssg-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl) 0;
}

.ssg-stat-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.ssg-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    font-family: 'Inter', sans-serif;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.ssg-stat-label {
    color: var(--text-grey);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.ssg-breadcrumbs {
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
}

.ssg-breadcrumbs a {
    color: var(--muted-grey);
    transition: color var(--transition-fast);
}

.ssg-breadcrumbs a:hover {
    color: var(--primary-red);
}

.ssg-breadcrumbs span {
    color: var(--muted-grey);
    margin: 0 var(--spacing-xs);
}

/* ============================================
   LOCAL INFO BOX
   ============================================ */

.ssg-local-info {
    background: var(--medium-grey);
    border-left: 4px solid var(--primary-red);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.ssg-local-info h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.ssg-local-info-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .ssg-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ssg-btn {
        justify-content: center;
    }
    
    .ssg-step {
        flex-direction: column;
    }
    
    .ssg-step:not(:last-child) .ssg-step-number::after {
        display: none;
    }
    
    .ssg-feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ssg-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.ssg-animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.ssg-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.text-primary { color: var(--primary-red); }
.text-muted { color: var(--muted-grey); }
.text-white { color: var(--white); }

.bg-dark { background-color: var(--dark-grey); }
.bg-medium { background-color: var(--medium-grey); }
.bg-primary { background-color: var(--primary-red); }
