/* Story Solay - Global Styles */

/* CSS Variables */
:root {
    /* Colors - Scandinavian Kids palette */
    --primary-color: #d89283;     /* Dusty rose */
    --secondary-color: #d5e0bf;   /* Soft sage */
    --accent-color: #e8aa6b;      /* Warm amber */
    --text-color: #2C3E50;        /* Deep charcoal */
    --text-light: #627380;        /* Soft gray */
    --bg-color: #FFFFFF;          /* Pure white */
    --bg-light: #FDFCFB;          /* Warm white */
    --bg-accent: #FFF9F6;         /* Very soft peach */
    --neutral-cool: #c9d3d4;      /* Cool gray blue */
    --neutral-warm: #edb5a5;      /* Soft terracotta */
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Fredoka', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: darken(var(--primary-color), 10%);
}

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

/* Header Styles */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.logo-icon {
    font-size: 2rem;
    margin-right: var(--spacing-xs);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon svg {
    stroke: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--neutral-warm));
    color: white;
    box-shadow: 0 4px 12px rgba(216, 146, 131, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 146, 131, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--neutral-cool);
    border-color: var(--neutral-cool);
}

.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* Hero Section */
.hero {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(213, 224, 191, 0.1) 50%, rgba(201, 211, 212, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-image {
    position: relative;
    height: 200px;
}

/* Abstract visual elements */
.hero-visual {
    position: relative;
    height: 200px;
    margin-top: 3rem;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 0;
    left: 30%;
    background: linear-gradient(135deg, var(--primary-color), transparent);
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 50px;
    right: 30%;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, var(--secondary-color), transparent);
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 0;
    left: 45%;
    animation-delay: 3s;
    background: linear-gradient(135deg, var(--accent-color), transparent);
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.1; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.15; }
}

/* Section Styles */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(180deg, rgba(213, 224, 191, 0.05) 0%, rgba(201, 211, 212, 0.05) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

.step-icon svg {
    stroke: var(--primary-color);
}

/* Why Story Solay */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature {
    display: flex;
    gap: var(--spacing-md);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-icon svg {
    stroke: var(--accent-color);
}

.feature-text h4 {
    margin-bottom: var(--spacing-xs);
}

.why-image .image-placeholder {
    background: var(--bg-accent);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}

.magic-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 20%; }
.sparkle:nth-child(2) { top: 50%; right: 30%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 30%; left: 40%; animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Story Themes */
.story-themes {
    background: linear-gradient(180deg, rgba(237, 181, 165, 0.05) 0%, rgba(232, 170, 107, 0.05) 100%);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.theme-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.theme-icon svg {
    stroke: var(--neutral-warm);
}

.theme-lessons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.lesson-tag {
    padding: 4px 12px;
    background: var(--neutral-cool);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-sm);
}

.stars svg {
    fill: var(--accent-color);
    width: 20px;
    height: 20px;
}

.testimonial p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.testimonial-author strong {
    display: block;
    color: var(--text-color);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Subscription Plans */
.subscription-plans {
    background: linear-gradient(180deg, rgba(201, 211, 212, 0.08) 0%, rgba(213, 224, 191, 0.08) 100%);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.plan-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease;
}

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

.plan-card:hover {
    transform: translateY(-5px);
}

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

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: var(--spacing-md);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: var(--spacing-sm) 0;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-light);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    color: var(--text-light);
    margin-left: 5px;
}

.plan-savings {
    color: var(--secondary-color);
    font-weight: 600;
}

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

.plan-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li svg {
    flex-shrink: 0;
    stroke: var(--secondary-color);
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.faq-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

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

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

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-icon {
    margin-right: 8px;
}

.footer-logo .logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.footer-logo .logo-text {
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-links a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--neutral-warm));
    color: white;
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.final-cta h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.final-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Specific Styles */
.page-hero {
    background: var(--bg-accent);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--primary-color);
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: var(--spacing-lg);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: var(--spacing-sm);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .main-nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Adjustments */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    /* Grid Adjustments */
    .steps-grid,
    .themes-grid,
    .testimonials-grid,
    .plans-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}