/* =============================================================================
   CURAVANI SIMPLE CSS - Mobile-First Minimal Design System
   ============================================================================= */

/* =============================================================================
   1. CSS VARIABLES - Simple color system
   ============================================================================= */
:root {
    /* Brand Colors */
    --primary: #00A651;      /* Curavani Green */
    --primary-dark: #007A3D; /* Darker green for hover */
    --secondary: #E8F7F0; /* Light green background for cards */ 
    --text: #333333;         /* Main text */
    --text-light: #666666;   /* Secondary text */
    --background: #FFFFFF;   /* White background */
    --gray-light: #F5F5F5;   /* Light gray for sections */
    --border: #E0E0E0;       /* Border color */
    
    /* Spacing - Simple scale */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    
    /* Typography - Simple scale */
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.25rem;   /* 20px */
    --font-size-xl: 1.5rem;    /* 24px */
    --font-size-2xl: 2rem;     /* 32px */
    
    /* Layout */
    --container-max: 1200px;
    --content-max: 800px;
    
    /* Borders & Shadows */
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   2. RESET & BASE STYLES
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    font-weight: 600;
    color: var(--text);
}

h1 {
    font-size: var(--font-size-xl);
    color: var(--primary);
}

h2 {
    font-size: var(--font-size-lg);
}

h3 {
    font-size: var(--font-size-base);
}

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

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

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

/* =============================================================================
   4. LAYOUT COMPONENTS
   ============================================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

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

.section-gray {
    background-color: var(--gray-light);
}

/* Header */
header {
    padding: var(--space-sm) 0;
    background: var(--background);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    margin-top: auto;
    padding: var(--space-lg) 0;
    background-color: var(--text);
    color: var(--background);
    text-align: center;
}

footer a {
    color: var(--background);
}

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

.footer-links {
    margin-top: var(--space-sm);
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   5. COMPONENTS
   ============================================================================= */

/* Buttons - Only one style */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--primary);
    color: var(--background);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

/* Cards - Simple card component */
.card {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow);
}

.card h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

/* Info boxes */
.info-box {
    background-color: var(--gray-light);
    border-left: 4px solid var(--primary);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Message boxes - variants of info-box */
.info-box.success {
    background-color: #E8F7F0;
    border-left-color: #00A651;
}

.info-box.success h3 {
    color: #00A651;
}

.info-box.error {
    background-color: #ffebee;
    border-left-color: #ef5350;
}

.info-box.error h3 {
    color: #c62828;
}

.info-box.warning {
    background-color: #fff3cd;
    border-left-color: #ffeaa7;
}

.info-box.warning h3 {
    color: #856404;
}

/* Forms - Simple styling */
form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: var(--font-size-base);
}

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

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Form error text */
.error-text {
    color: #c62828;
    font-size: var(--font-size-sm);
    display: none;
}

.error-text.show {
    display: block;
}

/* Input error state */
input.error {
    border-color: #ef5350;
}

/* Lists */
ul, ol {
    margin: var(--space-sm) 0;
    padding-left: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

/* =============================================================================
   6. GRID SYSTEM - Simple mobile-first grid
   ============================================================================= */
.grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

/* =============================================================================
   7. UTILITIES
   ============================================================================= */
.text-center {
    text-align: center;
}

.text-small {
    font-size: var(--font-size-sm);
}

.text-light {
    color: var(--text-light);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden {
    display: none;
}

/* =============================================================================
   8. SPECIFIC COMPONENTS (Minimal versions)
   ============================================================================= */

/* Hero section */
.hero {
    text-align: center;
    padding: var(--space-lg) 0;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero .subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

/* Feature list with red crosses (for pain points) */
.feature-list.negative li::before {
    content: "✗";
    color: #d32f2f;
}

/* FAQ Accordion */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--space-sm) 0;
}

.faq-question h3 {
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: var(--font-size-lg);
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed */
    margin-bottom: var(--space-md);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg); /* Turns + into × */
}

.stars {
    color: #FFD700; /* Gold color for star ratings */
}

.portrait {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 0 auto;
    display: block;
}

/* =============================================================================
   9. DESKTOP RESPONSIVE STYLES
   ============================================================================= */
@media (min-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    h3 {
        font-size: var(--font-size-lg);
    }
    
    /* Grid system */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Layout adjustments */
    .section {
        padding: var(--space-xl) 0;
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .container {
        padding: 0 var(--space-md);
    }

    /* Feature list checkmark positioning for desktop */
    .feature-list li::before {
        position: relative;
        margin-right: var(--space-sm);  /* Add space between checkmark and text */
    }
}

/* =============================================================================
   10. PRINT STYLES
   ============================================================================= */
@media print {
    header, footer, .btn {
        display: none;
    }
    
    body {
        color: black;
    }
}