:root {
    --primary: #B45309;
    --primary-dark: #92400E;
    --secondary: #F59E0B;
    --accent: #FBBF24;
    --bg-main: #FFFDF8;
    --bg-card: #FFFFFF;
    --bg-section: #FFFBEB;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --success: #15803D;
    --error: #B91C1C;
    --border-color: #E5E7EB;

    --font-en: 'Roboto', sans-serif;
    
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
    font-family: var(--font-en);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin-bottom: var(--space-md); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}
.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--accent);
}

/* Header */
.site-header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.main-nav a {
    color: var(--text-main);
    font-weight: 500;
}
.main-nav a:hover {
    color: var(--primary);
}
.lang-switcher a {
    color: var(--text-muted);
}
.lang-switcher a.active {
    color: var(--primary);
    font-weight: bold;
}

/* Main Layout */
main {
    flex: 1;
}
section {
    padding: var(--space-xl) 0;
}
.section-light {
    background-color: var(--bg-section);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(255, 251, 235, 0.9), rgba(255, 251, 235, 0.9)), url('../images/social-security-wb.webp') no-repeat center center;
    background-size: 100% 100%;
    text-align: center;
    padding: 4rem 0;
}
.hero h1 {
    color: var(--primary-dark);
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.action-card {
    display: block;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Page Headers */
.page-header {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}
.page-header h1 {
    color: white;
}

/* Forms & Tools */
.tool-container {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
}
.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-section);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.hidden {
    display: none;
}
.alert-warning {
    background-color: #FFFBEB;
    border-left: 4px solid var(--secondary);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.text-large { font-size: 2rem; }
.text-primary { color: var(--primary); }
.fw-bold { font-weight: bold; }

/* FAQ Accordion */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}
.faq-question.active::after {
    content: '-';
}
.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}
.faq-answer.active {
    display: block;
}

/* Checklist */
.checklist {
    list-style: none;
    margin-bottom: 2rem;
}
.checklist li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}
.checklist li::before {
    content: '✓';
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Steps */
.steps {
    display: grid;
    gap: 1.5rem;
}
.step-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}
.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--text-main);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--text-muted);
}
.footer-col a:hover {
    color: white;
}
.footer-disclaimer {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Schemes Directory */
.schemes-directory {
    background-color: var(--bg-main);
}
.section-header {
    margin-bottom: 3rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}
.text-center {
    text-align: center;
}
.popular-schemes-wrapper, .recent-schemes-wrapper {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.popular-schemes-wrapper h3, .recent-schemes-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tag {
    background-color: var(--bg-section);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}
.tag:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.new-tag {
    background-color: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}
.new-tag:hover {
    background-color: #F59E0B;
    color: white;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--bg-section);
    padding-bottom: 0.5rem;
}
.category-card ul {
    list-style: none;
}
.category-card li {
    margin-bottom: 0.5rem;
}
.category-card a {
    color: var(--text-muted);
    font-weight: 500;
}
.category-card a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        padding: 4rem 0;
    }
    h1 {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
    }
}
