/*
 * Myilk - Skills Exchange & Volunteer Network
 * Stylesheet
 */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary: #2a6b4f;
    --color-primary-dark: #1e4d3a;
    --color-primary-light: #e8f5ee;
    --color-accent: #d4883e;
    --color-accent-light: #fdf0e2;
    --color-danger: #c0392b;
    --color-danger-light: #fce4e4;
    --color-text: #2c3e50;
    --color-text-light: #6b7c8d;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #dee2e6;
    --color-border-light: #eef1f4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1140px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

main { flex: 1; padding-bottom: 3rem; }

/* ── Navigation ── */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); letter-spacing: -0.5px; }
.logo-tagline { font-size: 0.7rem; color: var(--color-text-light); }
.logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--color-text);
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.nav-logout { color: var(--color-text-light) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text); }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: white; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-danger { background: var(--color-danger); color: white; border-color: var(--color-danger); }
.btn-danger:hover { background: #a93226; border-color: #a93226; color: white; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 0.25rem; opacity: 0.5; }
.btn-icon:hover { opacity: 1; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--color-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-group small { display: block; margin-top: 0.25rem; color: var(--color-text-light); font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.required { color: var(--color-danger); }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: normal; }
.checkbox-label input[type="checkbox"] { width: auto; }
.checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.5rem 0; }
.checkbox-group .checkbox-label { font-size: 0.9rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* ── Flash Messages ── */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    transition: opacity 0.3s, transform 0.3s;
}
.flash-success { background: var(--color-primary-light); color: var(--color-primary-dark); border: 1px solid #b8dfc8; }
.flash-error { background: var(--color-danger-light); color: var(--color-danger); border: 1px solid #f1b0b0; }
.flash-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: 0.6; }

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 4rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f0f7f3 100%);
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-primary-dark); }
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero-sub { font-size: 1.15rem; color: var(--color-text-light); max-width: 680px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Stats Bar ── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.stat-label { font-size: 0.85rem; color: var(--color-text-light); }

/* ── How It Works ── */
.how-it-works { padding: 3rem 0; text-align: center; }
.how-it-works h2 { margin-bottom: 2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ── Skills Grid & Cards ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.skill-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
}
.skill-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.skill-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.skill-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.skill-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-volunteer { background: var(--color-primary-light); color: var(--color-primary); }
.badge-barter { background: var(--color-accent-light); color: var(--color-accent); }
.skill-type { font-size: 0.8rem; color: var(--color-text-light); }
.skill-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.skill-card h3 a { color: var(--color-text); }
.skill-card h3 a:hover { color: var(--color-primary); }
.skill-excerpt { font-size: 0.88rem; color: var(--color-text-light); flex: 1; margin-bottom: 0.75rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.tag {
    background: var(--color-bg);
    color: var(--color-text-light);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
}
.skill-card-footer { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--color-text-light); flex-wrap: wrap; border-top: 1px solid var(--color-border-light); padding-top: 0.75rem; }
.skill-author { color: var(--color-primary); font-weight: 500; }
.skill-card-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; }

.recent-skills { padding: 2rem 0; }
.recent-skills h2 { margin-bottom: 1.5rem; }
.center-action { text-align: center; margin-top: 2rem; }

/* ── Mission Banner ── */
.mission-banner {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}
.mission-banner h2 { color: var(--color-primary-dark); }
.mission-banner p { max-width: 640px; margin: 0.75rem auto 1.5rem; color: var(--color-text-light); line-height: 1.7; }

/* ── Skills Page Layout ── */
.skills-page { padding-top: 1.5rem; }
.skills-header { margin-bottom: 1.5rem; }
.skills-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.skills-sidebar {}
.skills-main {}
.skills-results-info { margin-bottom: 1rem; font-size: 0.9rem; color: var(--color-text-light); }
.filter-active { font-weight: 600; color: var(--color-primary); }

.filter-form {
    background: var(--color-white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.load-more-container { text-align: center; margin-top: 2rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--color-text-light); }
.empty-state h3 { color: var(--color-text); margin-bottom: 0.5rem; }
.empty-state-sm { font-size: 0.85rem; color: var(--color-text-light); text-align: center; padding: 0.5rem; }

/* ── Zip Code Cloud ── */
.zip-cloud {
    background: var(--color-white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.zip-cloud h3 { font-size: 0.95rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; }
.zip-cloud-back { font-size: 0.8rem; font-weight: normal; }
.zip-cloud-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.zip-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem 0.6rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text);
    transition: all 0.2s;
}
.zip-tag:hover { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }
.zip-tag.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.zip-count { font-size: 0.7rem; opacity: 0.7; }

/* ── Skill Detail ── */
.skill-detail { max-width: 800px; margin: 0 auto; padding-top: 1.5rem; }
.skill-detail-header { margin-bottom: 2rem; }
.skill-detail-badges { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.skill-type-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: var(--color-bg); }
.skill-detail h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.skill-detail-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9rem; color: var(--color-text-light); }
.skill-detail-meta a { color: var(--color-primary); font-weight: 500; }
.skill-detail-body { margin-bottom: 2rem; }
.skill-detail-description { line-height: 1.8; font-size: 1.05rem; margin-bottom: 1.5rem; }
.skill-detail-tags { margin-bottom: 1.5rem; }
.skill-detail-tags h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.skill-detail-actions { margin: 2rem 0; }

.safety-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.88rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.nearby-skills { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.nearby-skills h2 { margin-bottom: 1rem; }

.share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.share-section h3 { margin-bottom: 0.25rem; }
.share-section p { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 1rem; }
.share-buttons { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* ── Auth Pages ── */
.auth-container { display: flex; justify-content: center; padding: 2rem 0; }
.auth-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 440px;
}
.auth-card-wide { max-width: 560px; }
.auth-card h1 { text-align: center; margin-bottom: 0.25rem; }
.auth-subtitle { text-align: center; color: var(--color-text-light); margin-bottom: 1.5rem; font-size: 0.9rem; }
.auth-form { margin-top: 1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--color-text-light); }

/* ── Profile Page ── */
.profile-page { padding-top: 1.5rem; }
.profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-avatar-lg { width: 96px; height: 96px; font-size: 2.4rem; }
.profile-avatar-md { width: 64px; height: 64px; font-size: 1.5rem; }
.profile-avatar-sm { width: 36px; height: 36px; font-size: 0.9rem; }
.photo-upload-preview { display: flex; align-items: center; gap: 1rem; }
.photo-upload-input { flex: 1; }
.photo-upload-input input[type="file"] { width: 100%; font-size: 0.85rem; }
.profile-info { flex: 1; min-width: 200px; }
.profile-info h1 { margin-bottom: 0; }
.profile-username { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 0.25rem; }
.profile-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.75rem; flex-wrap: wrap; }
.profile-bio { font-size: 0.95rem; line-height: 1.6; }
.profile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.profile-skills { margin-bottom: 2rem; }
.profile-skills h2 { margin-bottom: 1rem; }

/* ── Modal ── */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.modal.open { display: flex; }
.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h2 { margin-bottom: 0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text-light); }

/* ── Form Page ── */
.form-page { max-width: 640px; margin: 0 auto; padding-top: 1.5rem; }
.form-page h1 { margin-bottom: 0.25rem; }
.form-page > p { color: var(--color-text-light); margin-bottom: 1.5rem; }
.skill-form, .message-form, .admin-form { margin-top: 1rem; }
.danger-zone { margin-top: 2rem; padding: 1.5rem; background: var(--color-danger-light); border-radius: var(--radius); }
.danger-zone h3 { color: var(--color-danger); margin-bottom: 0.25rem; }
.danger-zone p { font-size: 0.9rem; margin-bottom: 1rem; }

/* ── Messages ── */
.messages-page { padding-top: 1.5rem; max-width: 800px; margin: 0 auto; }
.messages-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.messages-tabs, .admin-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--color-border); }
.tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab:hover { color: var(--color-primary); }
.tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.messages-list {}
.message-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.15s;
}
.message-row:hover { background: var(--color-primary-light); }
.message-row.unread { background: #f0f7ff; }
.message-row.unread .message-subject { font-weight: 700; }
.message-link { display: grid; grid-template-columns: 160px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.85rem 1rem; flex: 1; color: var(--color-text); }
.message-from { font-size: 0.85rem; }
.message-subject { font-size: 0.9rem; }
.message-preview { display: none; }
.message-date { font-size: 0.8rem; color: var(--color-text-light); white-space: nowrap; }
.message-delete-form { padding-right: 0.5rem; }

.message-view { max-width: 700px; margin: 0 auto; padding-top: 1.5rem; }
.message-view-header { margin-bottom: 1.5rem; }
.message-view-header h1 { margin-top: 0.75rem; }
.message-view-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9rem; color: var(--color-text-light); }
.message-skill-ref { background: var(--color-primary-light); padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 1rem; }
.message-view-body { line-height: 1.8; font-size: 1.02rem; margin-bottom: 1.5rem; padding: 1.5rem; background: var(--color-white); border-radius: var(--radius); border: 1px solid var(--color-border-light); }
.message-view-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* ── Admin ── */
.admin-page { padding-top: 1.5rem; }
.admin-section { margin-bottom: 2rem; }
.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--color-white); border-radius: var(--radius); border: 1px solid var(--color-border-light); gap: 1rem; flex-wrap: wrap; }
.status-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-ok { background: var(--color-primary-light); color: var(--color-primary); }
.status-warn { background: var(--color-accent-light); color: var(--color-accent); }
.status-used { background: var(--color-bg); color: var(--color-text-light); }
.role-badge { padding: 0.15rem 0.5rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.role-admin { background: var(--color-accent-light); color: var(--color-accent); }
.role-user { background: var(--color-bg); color: var(--color-text-light); }
.text-muted { color: var(--color-text-light); font-size: 0.85rem; }

.admin-table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}
.admin-table td {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border-light);
}
.admin-table code { background: var(--color-bg); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85rem; }
.logo-setting-row { flex-direction: column; gap: 1rem; align-items: flex-start; }
.logo-preview-area { }
.admin-logo-preview { max-height: 60px; max-width: 240px; object-fit: contain; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.5rem; background: var(--color-white); }
.admin-logo-placeholder { color: var(--color-text-light); }
.admin-logo-placeholder .logo-text { display: block; margin-bottom: 0.25rem; }
.logo-upload-controls { width: 100%; max-width: 400px; }
.action-cell { white-space: nowrap; }
.action-cell form { display: inline-block; margin-right: 0.25rem; }

/* ── About Page ── */
.about-page { max-width: 800px; margin: 0 auto; padding-top: 1.5rem; }
.about-hero { text-align: center; margin-bottom: 2rem; }
.about-hero h1 { font-size: 2.5rem; color: var(--color-primary-dark); }
.lead { font-size: 1.2rem; color: var(--color-text-light); line-height: 1.7; max-width: 600px; margin: 0 auto; }
.about-section { margin-bottom: 2.5rem; }
.about-section h2 { color: var(--color-primary-dark); margin-bottom: 1rem; }
.about-section p { line-height: 1.8; margin-bottom: 0.75rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.about-card { background: var(--color-white); padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.about-card h3 { color: var(--color-primary); margin-bottom: 0.5rem; }
.about-safety ul { margin: 0.75rem 0 0 1.25rem; }
.about-safety li { margin-bottom: 0.4rem; }
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.value h3 { color: var(--color-primary); margin-bottom: 0.25rem; }
.about-cta { text-align: center; padding: 3rem 2rem; background: var(--color-primary-light); border-radius: var(--radius-lg); }
.about-cta h2 { color: var(--color-primary-dark); }
.about-cta p { color: var(--color-text-light); margin-bottom: 1.25rem; }

/* ── Footer ── */
.site-footer {
    background: var(--color-text);
    color: #c4cdd5;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-about h3 { color: white; margin-bottom: 0.5rem; }
.footer-logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 0.75rem; filter: brightness(0) invert(1); }
.footer-about p { font-size: 0.9rem; line-height: 1.6; }
.footer-links h4 { color: white; margin-bottom: 0.75rem; font-size: 0.9rem; }
.footer-links a { display: block; color: #a0b0be; font-size: 0.88rem; padding: 0.2rem 0; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #3d5060; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 0.5rem 1rem 1rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.6rem 0.75rem; }

    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 2.5rem 1rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .skills-layout { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .values-list { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-meta { justify-content: center; }
    .profile-actions { justify-content: center; }
    .message-link { grid-template-columns: 1fr; gap: 0.25rem; }
    .stats-bar { gap: 1.5rem; }
    .auth-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .container { padding: 0 1rem; }
}
