/* ============================================
   SETS Website - Main Stylesheet
   Modern, responsive design with standard classes
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* BACKUP - Teal/Terracotta palette:
    --primary-color: #2A7B7B;
    --primary-dark: #1F5F5F;
    --primary-light: #3D9E9E;
    --secondary-color: #C4703A;
    --secondary-light: #D4864E;
    --secondary-dark: #A85A2A;
    --accent-color: #C9A54D;
    */
    
    /* Primary: Deep Crimson Red - Turkish/Scanian */
    --primary-color: #A62626;
    --primary-dark: #8B1E1E;
    --primary-light: #C43333;
    
    /* Secondary: Rich Gold/Amber - Swedish/Scanian */
    --secondary-color: #C9912A;
    --secondary-light: #DAA740;
    --secondary-dark: #B07D1E;
    
    /* Accent: Deep burgundy for variety */
    --accent-color: #722F37;
    --accent-light: #8B3A44;
    
    /* Text colors */
    --text-dark: #2D2926;
    --text-light: #4A4543;
    --text-muted: #6B6560;
    
    /* Backgrounds - Warm cream tones */
    --bg-light: #FAF8F5;
    --bg-white: #FFFDF9;
    --bg-dark: #2D2926;
    
    /* Borders & Shadows */
    --border-color: #E5DFD8;
    --shadow-sm: 0 2px 4px rgba(45, 41, 38, 0.06);
    --shadow-md: 0 4px 12px rgba(45, 41, 38, 0.10);
    --shadow-lg: 0 8px 24px rgba(45, 41, 38, 0.14);
    
    /* Status colors */
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    
    /* Utility */
    --transition: all 0.3s ease;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

strong {
    font-weight: 700;
    color: var(--text-dark);
}

em {
    font-style: italic;
}

/* ============================================
   3. LAYOUT & CONTAINERS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.row.row-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.row.row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col {
    flex: 1;
}

.col-12 {
    grid-column: 1 / -1;
}

.col-6 {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }
    
    .row.row-2 {
        grid-template-columns: 1fr;
    }
    
    .row.row-3 {
        grid-template-columns: 1fr;
    }
    
    .col-6 {
        grid-column: 1 / -1;
    }
}

/* ============================================
   4. NAVBAR
   ============================================ */

.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

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

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .navbar-container {
        height: 60px;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-white);
        gap: 0;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-menu.open {
        display: flex;
    }
    
    .navbar-item {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .navbar-link {
        display: block;
        padding: 1rem 20px;
        border-bottom: none;
    }
    
    .navbar-toggle {
        display: block;
    }
}

.lang-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

.flag {
    font-size: 1.5rem;
    cursor: pointer;
}

.lang-selector a {
    text-decoration: none;
}

/* ============================================
   5. FOOTER
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--bg-light);
    font-size: 0.95rem;
}

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

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

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   6. HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, rgba(166, 38, 38, 0.88), rgba(139, 30, 30, 0.92)),
                url('sources/img/backdrop.webp') center / cover no-repeat;
    color: var(--bg-white);
    padding: 8rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn-outline {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.hero .btn-outline:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* ============================================
   7. BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

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

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

.btn-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   8. CARDS
   ============================================ */

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-body {
    margin-bottom: 1rem;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   9. SECTIONS
   ============================================ */

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

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

.section-alt {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.section-alt h2,
.section-alt h3 {
    color: var(--bg-white);
}

.section-alt p {
    color: rgba(255, 255, 255, 0.9);
}

.section-alt .btn-outline {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.section-alt .btn-outline:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--bg-white);
}

/* ============================================
   10. FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 20, 60, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   11. PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
}

.pagination span.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination span.disabled {
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* ============================================
   12. ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

/* ============================================
   13. UTILITY CLASSES
   ============================================ */

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

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

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

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

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

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

.text-white {
    color: var(--bg-white);
}

.m-0 { margin: 0; }
.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.d-flex {
    display: flex;
}

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

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.display-none {
    display: none;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.rounded {
    border-radius: 4px;
}

.border {
    border: 1px solid var(--border-color);
}

.shadow {
    box-shadow: var(--shadow-md);
}

/* ============================================
   14. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
}
