/* =========================================
   Global Variables & Reset
   ========================================= */
:root {
    --jbb-green: #006837;
    --jbb-green-dark: #004524;
    --jbb-green-light: #1e8753;
    --jbb-green-highlight: #008f4c;
    --jbb-blue: #262262;
    --jbb-gold: #d4af37;
    
    /* Color variables updated for the framing effect */
    --jbb-bg: #F4F1EA; 
    --jbb-bg-outer: #DDD9D0; 
    
    --text-main: #333333;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--jbb-bg-outer); /* Makes outside margins darker */
    color: var(--text-main);
    overflow-x: hidden;
}

/* The wrapper class to hold the center content */
.page-wrapper {
    background-color: var(--jbb-bg);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: var(--shadow-soft);
}

/* =========================================
   Header Layout
   ========================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--jbb-green);
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.header-nav a {
    text-decoration: none;
    color: var(--jbb-green);
    font-weight: 600;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--jbb-gold);
}

/* =========================================
   Hero Banner
   ========================================= */
.hero-banner-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem 0 2rem;
}

.hero-banner-wrapper {
    position: relative;
    width: 95%; 
    max-width: 1200px; 
    display: block;
    margin: 0 auto; 
}

.actual-banner-file {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: var(--shadow-heavy);
    border-radius: 16px;
}

/* =========================================
   Overlapping Profiles Layout
   ========================================= */
.profile-overlap-section {
    position: relative;
    width: 100%;
    height: 300px; 
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Removed the bottom margin to pull the text up */
    margin-bottom: 0; 
    
    background-image: url('../assets/images/homepage_strip.svg'); 
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
}

.profile-container {
    position: relative;
    width: 600px;
    height: 100%;
}

.profile-circle {
    position: absolute;
    border-radius: 50%;
    border: none; 
    box-shadow: var(--shadow-heavy);
    background: var(--jbb-green);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-circle {
    width: 180px;
    height: 180px;
    top: 50px; 
    left: 10%;
    z-index: 1;
}

.avatar-circle {
    width: 240px;
    height: 240px;
    top: 20px; 
    right: 10%;
    z-index: 2;
    background: radial-gradient(circle, var(--jbb-green-light) 0%, var(--jbb-green-dark) 100%);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-circle img {
    width: 80%;
    height: auto;
    object-fit: contain;
    transform: scale(1.15) translateY(10px);
}

/* =========================================
   Main Content Grid
   ========================================= */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    
    /* Removed top padding to suck the text up tighter */
    padding: 0 2rem 2rem 2rem; 
}

.main-heading {
    color: var(--jbb-blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.sub-heading {
    color: var(--jbb-green);
    margin-bottom: 1rem;
}

.edge-heading {
    color: var(--jbb-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.edge-desc {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Feature 2-Column Subgrid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.feature-item .icon {
    font-size: 1.5rem;
    color: var(--jbb-green);
}

/* =========================================
   Bottom Action Buttons 
   ========================================= */
.action-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 1.25rem;
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.btn-3d {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
    max-width: 240px; 
    padding: 0.75rem 1rem; 
    
    background: linear-gradient(180deg, 
                var(--jbb-green-light) 0%, 
                var(--jbb-green) 25%, 
                var(--jbb-green-highlight) 50%, 
                var(--jbb-green) 75%, 
                var(--jbb-green-dark) 100%);
                
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: left;
    
    box-shadow: 0 8px 15px rgba(0,0,0,0.3), 
                inset 0 3px 5px rgba(255,255,255,0.4), 
                inset 0 -3px 5px rgba(0,0,0,0.5);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-3d:active {
    transform: translateY(4px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2), 
                inset 0 2px 4px rgba(0,0,0,0.5);
}

.btn-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.btn-text {
    line-height: 1.2;
    font-size: 0.95rem;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: #222;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media screen and (max-width: 1024px) {
    .hero-banner-wrapper { width: 90%; }
    .main-content-grid { gap: 2rem; }
    .btn-3d { min-width: 180px; max-width: 220px; }
}

@media screen and (max-width: 768px) {
    .site-header { flex-direction: column; gap: 1rem; }
    .main-content-grid { grid-template-columns: 1fr; }
    .action-buttons-container { flex-direction: column; align-items: center; }
    .btn-3d { width: 100%; max-width: 350px; }
    
    .profile-container { width: 100%; }
    .photo-circle { width: 140px; height: 140px; left: 5%; }
    .avatar-circle { width: 180px; height: 180px; right: 5%; }
}

@media screen and (max-width: 480px) {
    .hero-banner-wrapper { width: 95%; }
    .features-grid { grid-template-columns: 1fr; }
    .photo-circle { left: -10px; }
    .avatar-circle { right: -10px; }
}