/* Main variables and layout */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--secondary-color);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: padding 0.3s ease;
    padding: 1rem 0;
}

.navbar.navbar-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 40px;
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled .navbar-brand img {
    max-height: 30px;
}

.navbar-title {
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.navbar.navbar-scrolled .navbar-title {
    font-size: 1rem;
}

/* Navbar navigation styling */
.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color) !important;
    padding: 0.4rem 0.8rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: -0.005em;
}

.navbar-nav .nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero section - no logo, larger typography */
.hero-section {
    position: relative;
    padding: 20px 0 80px 0 !important; /* Reduced top, increased bottom for stripe spacing */
    background-color: white !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-image: url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Add scroll-margin for anchor links to account for fixed navbar */
section[id] {
    scroll-margin-top: 100px;
    padding: 36px 0; /* Reduced by ~40% from 60px */
}


.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}


.hero-section .hero-tagline {
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 0.75rem auto;
    line-height: 1.3;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

/* Consistent section headers */
section h2 {
    font-size: 2rem; /* Slightly reduced */
    margin-bottom: 1.5rem; /* Reduced spacing */
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title:hover {
    text-decoration: underline !important;
}

section h3 {
    font-size: 1.35rem; /* Slightly reduced */
    margin-bottom: 1.25rem; /* Reduced spacing */
    color: var(--secondary-color);
    line-height: 1.25;
    letter-spacing: -0.01em;
}


/* Capabilities section - card-based grid layout */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.capability-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.capability-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.capability-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.capability-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.capability-card li {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.capability-card li:last-child {
    margin-bottom: 0;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .capability-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    section[id] {
        padding: 24px 0; /* Reduced by ~40% from 40px */
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem; /* Larger for mobile */
    }
    
    .hero-section .hero-tagline {
        font-size: 1.25rem; /* Larger for mobile */
        max-width: 90%;
    }
    
    section h2 {
        font-size: 1.75rem; /* Reduced */
    }
    
    section h3 {
        font-size: 1.2rem; /* Reduced */
    }
    
}



.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

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

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.case-study img {
    max-width: 100%;
    height: auto;
}

/* Engagement cards - compact design */
.case-studies .card {
    border-radius: 8px;
    overflow: hidden;
}

.case-studies .card-img-top {
    max-width: 100%;
    height: 80px; /* Further reduced */
    object-fit: cover;
}

.case-studies .card-body {
    padding: 1rem 0.875rem; /* Reduced padding slightly */
}

.case-studies .card-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-studies .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .case-studies .card-img-top {
        height: 60px; /* Further reduced */
    }
    
    .case-studies .card-body {
        padding: 0.875rem 0.75rem;
    }
    
    .case-studies .card-title {
        font-size: 1rem;
    }
}

.footer {
    background-color: var(--light-gray);
    color: var(--medium-gray);
}

