/* ============================================
   SOCIAL LEVERAGE - MAIN STYLESHEET
   ============================================ */

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

:root {
    /* Brand Colors */
    --sl-green: #2D8B6F;
    --sl-green-light: #3DA585;
    --sl-green-dark: #1F6B55;
    
    /* Neutral Colors */
    --charcoal: #1A1A1A;
    --gray: #6B7280;
    --light-gray: #E5E7EB;
    --off-white: #FAFAFA;
    --white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --section-padding-lg: 100px;
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a {
    color: var(--sl-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--sl-green-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

address {
    font-style: normal;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    z-index: 1000;
    padding: 16px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--sl-green);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    z-index: 999;
    padding: 24px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sl-green);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--sl-green-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--sl-green);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--sl-green);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--sl-green);
    color: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 180px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 24px;
    color: var(--charcoal);
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
}

.section-header a {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
    padding: var(--section-padding) 0;
    border-top: 1px solid var(--light-gray);
}

.portfolio-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-med);
    position: relative;
}

.portfolio-card:hover {
    border-color: var(--sl-green);
    box-shadow: 0 12px 40px rgba(45, 139, 111, 0.12);
    transform: translateY(-4px);
}

.exit-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--sl-green);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-logo {
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.portfolio-logo img {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.portfolio-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.portfolio-card .link {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team-section {
    padding: var(--section-padding-lg) 0;
    background: var(--off-white);
}

.team-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.team-section > .container > p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 60px;
    max-width: 500px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #d1d5db 100%);
    margin-bottom: 20px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 14px;
    color: var(--gray);
}

.team-cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   STORIES SECTION
   ============================================ */

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

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.story-card {
    display: block;
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-med);
    color: inherit;
}

.story-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    color: inherit;
}

.story-thumbnail {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--sl-green) 0%, var(--sl-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.story-content {
    padding: 24px;
}

.story-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.story-meta {
    font-size: 13px;
    color: var(--gray);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    padding: var(--section-padding-lg) 0;
    background: var(--charcoal);
    text-align: center;
}

.newsletter-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.newsletter-section p {
    font-size: 18px;
    color: #9CA3AF;
    margin-bottom: 32px;
}

.newsletter-form-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: 2px solid var(--sl-green);
    outline-offset: 2px;
}

.newsletter-form button {
    background: var(--sl-green);
    color: var(--white);
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--sl-green-light);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: #9CA3AF;
    font-size: 14px;
    margin-top: 16px;
}

.footer-brand address {
    color: #9CA3AF;
    font-size: 13px;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 14px;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #9CA3AF;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--white);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

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

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --section-padding-lg: 80px;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero */
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    /* Portfolio */
    .portfolio-card {
        flex: 0 0 280px;
    }
    
    /* Team */
    .team-section h2 {
        font-size: 32px;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-section h2 {
        font-size: 32px;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
