/* ========================================
   SBA - Somali Business Alliance
   Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0A2540;
    --accent-color: #D4AF37;
    --secondary-color: #1E3A5F;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --success: #10B981;
    --border: #E5E7EB;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
    
}

body {
    
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--text-dark);
    background-color:var(--whitesmoke);
    font-size: 16.5px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary-color);
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.1rem; margin-bottom: 1.15rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.65rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.1rem;
    color: var(--text-dark);
    line-height: 1.75;
}

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

a:hover {
    color: var(--accent-color);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.section {
    padding: 5rem 0;
}

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

.text-gold {
    color: var(--accent-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

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

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

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: #C5A12F;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.85rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo img {
    height: 52px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.03);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links .active {
    color: var(--accent-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 8rem 0 6.75rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero.jpg') center/cover no-repeat;
    opacity: 0.14;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.4rem;
    margin-bottom: 1.1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.25rem;
    color: #E0E7FF;
    max-width: 560px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features / Stats */
.stats {
    background-color: var(--light-bg);
    padding: 3.25rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2.25rem;
    text-align: center;
}

.stat-item {
    padding: 1.1rem 0.75rem;
}

.stat-number {
    font-size: 2.65rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.stat-label {
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.35rem;
    font-size: 0.97rem;
}

/* Cards & Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    margin-top: 2.25rem;
}

.services-showcase {
    padding: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color) 55%, #f8fafc 55%, #f8fafc 100%);
}

.services-hero {
    background-color: var(--primary-color);
    padding: 3.5rem 0 5.25rem;
}

.page-header {
    background-color: var(--primary-color);
    padding: 3.5rem 0;
    color: var(--white);
}

.page-header .services-header {
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.page-header .services-header h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-header .services-intro {
    color: #E2E8F0;
}

.page-header .eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.services-header {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.services-header h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.services-intro {
    max-width: 680px;
    margin: 0 auto;
    color: #E2E8F0;
    font-size: 1.06rem;
}

.services-cards-wrap {
    margin-top: -2.25rem;
    padding-bottom: 3rem;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.6rem;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #e7ebf1;
    border-radius: 20px;
    box-shadow: 0 20px 45px -28px rgba(15, 23, 42, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.38);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(10, 37, 64, 0.08);
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.service-card h3 {
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 0.98rem;
}

@media (max-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services-hero {
        padding: 3rem 0 4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E8ECF0;
}

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

.card-image {
    width: 100%;
    height: 195px;
    object-fit: cover;
}

.card-content {
    padding: 1.65rem;
}

.card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.38rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.97rem;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.card-footer {
    padding: 1.1rem 1.65rem;
    background: #F1F5F9;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.88), transparent);
    color: white;
    padding: 1.35rem 1.25rem;
    transform: translateY(15%);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.gallery-overlay p {
    color: #E0E7FF;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 2.25rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th, td {
    padding: 1.1rem 1.35rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #F1F5F9;
}

tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

td {
    color: var(--text-dark);
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

/* Form */
.form-container {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    padding: 3.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

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

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

.form-group.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    font-size: 1.02rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

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

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--accent-color);
}

fieldset {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

legend {
    padding: 0 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.faq-question {
    padding: 1.35rem 1.75rem;
    background: var(--light-bg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-size: 1.02rem;
}

.faq-question:hover {
    background: #F1F5F9;
}

.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--accent-color);
    transition: transform 0.3s;
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 1.75rem 1.75rem;
    max-height: 240px;
}

/* About */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

.team-photo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    padding: 0.35rem;
    border-radius: 50%;
    background: var(--accent-color);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(10, 37, 64, 0.08);
}

.team-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 50%;
    margin-bottom: 0;
}

.team-card h3 {
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-id {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--light-bg);
    display: inline-block;
    padding: 0.15rem 0.75rem;
    border-radius: 50px;
}

/* Mission / Values */
.mission-section {
    background: var(--light-bg);
}

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

.value-card {
    padding: 1.75rem;
    background: white;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #CBD5E1;
    padding: 3.75rem 0 1.75rem;
}

footer h4 {
    color: var(--white);
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
}

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

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

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

.footer-links a {
    color: #CBD5E1;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a span,
.social-links a svg {
    display: block;
}

.social-links a svg {
    width: 16px;
    height: 16px;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow);
        display: none;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.85rem; }

    .section {
        padding: 3rem 0;
    }

    .form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    nav, .hero-buttons, footer {
        display: none;
    }
}

/* Additional Polish */
.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Map iframe styling */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}