/* ===========================
   INVESTMENT BANKING PAGE
   =========================== */

/* Hero Section */
.ib-hero {
    height: 60vh;
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero-ocean-waves-hq.jpg');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 0 80px;
    filter: brightness(1.25) contrast(1.2);
}

.ib-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.45) 0%, 
        rgba(0, 0, 0, 0.35) 50%, 
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.ib-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.ib-hero .hero-content-inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ib-hero .hero-text {
    max-width: calc(300px + 60px + 750px); /* 1110px - matches content below */
    width: 100%;
}

.ib-hero .hero-heading {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.ib-hero .hero-subheading {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Reduce top padding for about section on investment banking page */
/* About section uses default dark/teal gradient from style.css */

/* White background for services section */
.services-grid-section {
    background: #ffffff !important;
}

.services-grid-section .section-eyebrow {
    color: #1a4d4d !important;
}

.services-grid-section .eyebrow-line {
    background: #1a4d4d !important;
}

.services-grid-section .eyebrow-text {
    color: #1a4d4d !important;
}

.services-grid-section .services-grid-title {
    color: #1a1a1a !important;
}

.services-grid-section .services-grid-subtitle {
    color: rgba(26, 26, 26, 0.8) !important;
}

.about-section-flipped .about-content {
    flex: 1;
    max-width: 750px;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .about-image-block {
        flex: 0 0 350px;
        width: 350px;
        min-width: 350px;
        max-width: 350px;
    }
    
    .about-image-block img {
        height: 450px;
    }
    
    .about-section-flipped {
        padding: 80px 40px;
    }
    
    .about-content-wrapper-flipped {
        gap: 50px;
    }
    
    .services-grid-section .service-large-card-image {
        height: 120px !important;
    }
}

@media (max-width: 768px) {
    .about-content-wrapper,
    .about-content-wrapper-flipped {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image-block {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }
    
    .about-image-block img {
        height: 300px;
    }
    
    .about-section-flipped {
        padding: 60px 20px;
    }
    
    .about-section-flipped .about-title {
        font-size: 26px;
        margin-bottom: 24px;
    }
    
    .about-section-flipped .about-description {
        font-size: 15px;
    }
    
    .services-grid-section .service-large-card-image {
        height: 100px !important;
    }
    
    .services-grid-section .service-large-card-content {
        padding: 16px 14px 20px !important;
    }
    
    .services-grid-section .service-large-card-title {
        font-size: 16px !important;
    }
    
    .services-grid-section .service-large-card-text {
        font-size: 12px !important;
    }
    
    .services-grid-section .services-large-cards {
        gap: 20px !important;
    }
}

/* Breadcrumb in About Section - Left align with content */
.about-section .about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Breadcrumb outer wrapper - matches content wrapper structure */
.about-section .hero-breadcrumb {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    width: 100%;
}

/* Breadcrumb inner content - left aligned */
.about-section .breadcrumb-inner {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: calc(300px + 60px + 750px); /* card + gap + text max-width */
    text-align: left;
}

/* Content wrapper for card and text (below breadcrumb) */
.about-section .about-content-wrapper {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
}

/* Keep card fixed width - NEVER CHANGES */
.about-section .sustainability-card {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

.about-section .breadcrumb-inner a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-section .breadcrumb-inner a:hover {
    color: #ffffff;
}

.about-section .breadcrumb-inner .breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.about-section .breadcrumb-inner .breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Services Grid Section */
.services-grid-section {
    background: #ffffff;
    padding: 100px 80px;
}

.services-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-grid-title {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.services-grid-subtitle {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* Services Large Cards (2 cards similar to about page style) */
.services-large-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.service-large-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-large-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.service-large-card-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.service-large-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-large-card:hover .service-large-card-image img {
    transform: scale(1.05);
}

.service-large-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #1a4d4d;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.service-large-card-content {
    padding: 32px 28px 36px;
    color: white;
}

.service-large-card-title {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: white;
}

.service-large-card-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.service-large-button {
    display: inline-block;
    background: #1a7fb8;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-large-button:hover {
    background: #1568a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 127, 184, 0.3);
}

/* OLD Services Cards Grid - Keep for backwards compatibility */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #3a9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #3a9999;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card-title {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.service-card-description {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin: 0;
}

.service-card-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.service-card-list li {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.service-card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3a9999;
    font-weight: 600;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3a9999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.service-card-link:hover {
    gap: 12px;
    color: #2a7979;
}

.service-card-link svg {
    width: 16px;
    height: 16px;
}

/* Approach Section */
.approach-section {
    background: linear-gradient(135deg, #0a2d2d 0%, #08252d 50%, #061e23 100%);
    padding: 120px 80px;
    position: relative;
}

.approach-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.approach-title {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: #ffffff;
    margin: 16px 0 24px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.approach-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0 0 60px 0;
}

/* Approach Stats */
.approach-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

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

.stat-number {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.approach-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.approach-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    gap: 16px;
}

.approach-cta svg {
    width: 18px;
    height: 18px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .about-section .about-content-wrapper {
        gap: 50px;
    }
    
    .about-section .breadcrumb-inner {
        max-width: calc(300px + 50px + 700px);
    }
    
    .ib-hero .hero-text {
        max-width: calc(300px + 50px + 700px);
    }
}

@media (max-width: 1024px) {
    .ib-hero,
    .services-grid-section,
    .approach-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .about-section .about-content-wrapper {
        gap: 40px;
    }
    
    .services-cards-grid {
        gap: 32px;
    }
    
    .service-card {
        padding: 32px;
    }
}

@media (max-width: 900px) {
    .about-section .about-content-wrapper {
        gap: 32px;
    }
    
    .services-cards-grid,
    .services-large-cards {
        grid-template-columns: 1fr;
    }
    
    .approach-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .ib-hero {
        height: 50vh;
        min-height: 400px;
        padding: 0 20px;
    }
    
    .ib-hero .hero-heading {
        font-size: 32px;
    }
    
    .ib-hero .hero-subheading {
        font-size: 16px;
    }
    
    /* Stack card below text on mobile */
    .about-section .about-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-section .sustainability-card {
        margin: 0 auto;
    }
    
    .about-section .breadcrumb-inner {
        max-width: 100%;
    }
    
    .services-grid-section,
    .approach-section {
        padding: 60px 20px;
    }
    
    .services-grid-title,
    .approach-title {
        font-size: 32px;
    }
    
    .services-grid-subtitle,
    .approach-text {
        font-size: 16px;
    }
    
    .services-cards-grid,
    .services-large-cards {
        gap: 24px;
    }
    
    .service-card {
        padding: 28px;
    }
    
    .service-large-card-image {
        height: 300px;
    }
    
    .service-large-card-content {
        padding: 28px 24px 32px;
    }
    
    .service-card-title,
    .service-large-card-title {
        font-size: 20px;
    }
    
    .approach-stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .ib-hero .hero-heading {
        font-size: 28px;
    }
    
    .services-grid-title,
    .approach-title {
        font-size: 26px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .approach-section {
        padding: 50px 20px;
    }
}
