/* =========================================
   LOCAL.CSS - Homepage Specific Styles
   Sections below the fold on homepage
   ========================================= */

/* =========================================
   1. OAK HARBOR SECTION BASE
   ========================================= */
.oh-section {
    padding: var(--sectionPadding);
    background: var(--backgroundColor);
}

.oh-section__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.oh-section__intro .cs-title {
    margin: 0 auto 1rem;
    text-align: center;
}

.oh-section__intro .cs-text {
    margin: 0 auto;
    text-align: center;
}

/* =========================================
   2. OUR SOLUTIONS (#packages-966)
   ========================================= */
#packages-966 {
    background: linear-gradient(to bottom,
        var(--backgroundColor) 0%,
        var(--backgroundColor) 35%,
        var(--bg-offset) 65%,
        var(--bg-offset) 100%
    );
}

.oh-services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.oh-services li {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oh-services h3 {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* =========================================
   3. WORK GALLERY - BENTO GRID
   ========================================= */
.work-gallery {
    padding: var(--sectionPadding);
    background: var(--bg-offset);
}

.work-gallery__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 2rem;
}

.work-gallery__intro .cs-title {
    margin-top: 0.25rem;
}

.work-gallery__bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.bento-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--glass-shadow);
}

.bento-item--large {
    grid-column: 1;
    grid-row: 1 / 3;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
    transition: transform 0.4s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-item--large img {
    min-height: 100%;
}

.bento-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--card-bg);
    color: var(--headerColor);
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.25rem;
    border: 1px solid var(--card-border);
}

@media (max-width: 900px) {
    .work-gallery__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .work-gallery__bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .bento-item--large {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    
    .bento-item img {
        min-height: 180px;
    }
    
    .bento-item--large img {
        min-height: 280px;
    }
}

@media (max-width: 500px) {
    .work-gallery__bento {
        grid-template-columns: 1fr;
    }
    
    .bento-item--large {
        grid-column: 1;
    }
    
    .bento-item img,
    .bento-item--large img {
        min-height: 200px;
    }
}

/* =========================================
   4. ABOUT COLLAGE SECTION
   ========================================= */
.about-collage-section {
    padding: var(--sectionPadding);
    background: var(--bg-offset);
}

.about-collage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-collage-content {
    order: 1;
}

.about-collage-content .cs-title {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-collage-content .cs-text {
    margin-bottom: 2rem;
}

/* Feature List */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: 0.125rem;
}

.about-feature-icon svg {
    width: 1rem;
    height: 1rem;
}

.about-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--headerColor);
    margin: 0 0 0.25rem;
}

.about-feature-text p {
    font-size: 0.875rem;
    color: var(--bodyTextColor);
    line-height: 1.5;
    margin: 0;
}

/* Collage Media Layout */
.about-collage-media {
    order: 2;
    position: relative;
    height: 500px;
}

.collage-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    z-index: 10;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.collage-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-overlap-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    z-index: 20;
    border-radius: 1rem;
    overflow: hidden;
    border: 4px solid var(--card-bg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.collage-overlap-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-badge {
    position: absolute;
    top: 50%;
    right: 20%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 12px)); }
}

.collage-badge-large {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.collage-badge-small {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

@media (max-width: 1024px) {
    .about-collage-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-collage-content { order: 2; }
    .about-collage-media { order: 1; height: 400px; }
    .collage-badge { display: none; }
}

@media (max-width: 600px) {
    .about-collage-media { height: 320px; }
    .collage-main-img { width: 75%; height: 75%; }
    .collage-overlap-img { width: 55%; height: 55%; }
}

/* =========================================
   5. WHY GRID SECTION
   ========================================= */
.why-grid {
    padding: var(--sectionPadding);
    background: var(--bg-offset);
}

.why-grid__layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.why-grid__media {
    grid-column: span 5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

.why-grid__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-grid__items {
    grid-column: span 7;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.why-card {
    padding: 1.5rem;
    padding-left: calc(1.5rem + var(--card-accent-width, 5px));
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--card-accent-width, 5px);
    border-radius: 16px 0 0 16px;
    background: var(--card-accent-gradient);
}

.why-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: var(--card-accent-glow);
    pointer-events: none;
    border-radius: inherit;
}

.why-card h3 {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.why-card p {
    position: relative;
    z-index: 1;
}

@media (max-width: 1023px) {
    .why-grid__layout { grid-template-columns: 1fr; }
    .why-grid__media, .why-grid__items { grid-column: span 12; }
}

/* =========================================
   6. STATS BAND SECTION
   ========================================= */
.stats-band {
    padding: clamp(4rem, 8vw, 6rem) 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
}

.stats-band .cs-container {
    position: relative;
    z-index: 1;
}

.stats-band__header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-band__topper {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stats-band__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    font-family: var(--headerFont);
    color: #fff;
}

.stats-band__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stats-band__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-band__icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-band__icon svg {
    width: 100%;
    height: 100%;
}

.stats-band__number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    font-family: var(--headerFont);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stats-band__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .stats-band__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
    
    .stats-band__header { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
    .stats-band__icon { width: 2.5rem; height: 2.5rem; }
}

/* =========================================
   7. REVIEWS SECTION
   ========================================= */
.oh-reviews {
    padding: var(--sectionPadding);
    padding-bottom: 10rem;
    background: var(--backgroundColor);
    position: relative;
    z-index: 1;
}

.oh-reviews__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.oh-reviews__grid li {
    border-radius: 24px;
    padding: 2rem;
    padding-left: calc(2rem + var(--card-accent-width, 5px));
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.oh-reviews__grid li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--card-accent-width, 5px);
    background: var(--card-accent-gradient);
    border-radius: 24px 0 0 24px;
}

.oh-reviews__grid li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: var(--card-accent-glow);
    pointer-events: none;
    border-radius: inherit;
}

.oh-reviews__grid p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.oh-reviews__grid .name {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
}

.oh-reviews__grid .role {
    font-size: 0.85rem;
    color: #64748b;
}

/* =========================================
   8. GUARANTEE SECTION
   ========================================= */
.guarantee-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1f1a0f 100%);
    padding: 5rem 0;
}

.guarantee-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.guarantee-section .cs-topper { color: var(--primary); }
.guarantee-section .cs-title { color: #fff; }
.guarantee-section .cs-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}
.guarantee-section .cs-button-solid { margin-top: 1rem; }

/* =========================================
   9. EXPERTISE SECTION
   ========================================= */
.expertise-section {
    background: var(--bg-offset);
    padding: 4rem 0;
    text-align: center;
}

.expertise-header {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bodyTextColor);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.expertise-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--headerColor);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.partner-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--headerColor);
    transition: width 0.3s ease;
}

.partner-logo:hover::after { width: 100%; }

/* =========================================
   10. ACE REPORT SECTION (CTA)
   ========================================= */
.ace-report-section {
    background: var(--bg-offset);
    padding: 5rem 0;
    text-align: center;
}

.ace-report-content {
    max-width: 700px;
    margin: 0 auto;
}

.ace-report-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--headerColor);
    position: relative;
    padding-bottom: 1rem;
}

.ace-report-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.ace-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .ace-report-section { padding: 4rem 0; }
    .ace-report-content h2 { font-size: 1.75rem; margin-bottom: 1.75rem; }
    .ace-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .ace-buttons .cs-button-solid { width: 100%; min-width: auto; }
}

/* =========================================
   11. ABOUT US SECTION (HOME)
   ========================================= */
.about-us-section {
    background: var(--bg-offset);
    padding: 5rem 0;
    position: relative;
    overflow: visible;
}

.about-us-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-us-media { position: relative; }

.about-us-media img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-us-content { padding-left: 2rem; }

.about-us-tag {
    display: inline-block;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--headerColor);
    margin-bottom: 1.5rem;
}

.about-us-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--headerColor);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-us-text {
    color: var(--bodyTextColor);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-us-button { margin-top: 1.5rem; }

/* About Us Features Row */
.about-us-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 3rem;
}

.about-feature-item {
    padding: 2rem;
    border-left: 1px solid var(--card-border);
}

.about-feature-item:first-child { border-left: none; padding-left: 0; }
.about-feature-item:last-child { padding-right: 0; }

.about-feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--headerColor);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-feature-item p {
    color: var(--bodyTextColor);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .about-us-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-us-content { padding-left: 0; }
    .about-us-title { font-size: 1.75rem; }
    .about-us-features { grid-template-columns: 1fr; gap: 0; }
    .about-feature-item {
        border-left: none;
        border-top: 1px solid var(--card-border);
        padding: 1.5rem 0;
    }
    .about-feature-item:first-child { border-top: none; padding-top: 0; }
    .about-feature-item:last-child { padding-bottom: 0; }
}

@media (max-width: 600px) {
    .about-us-section { padding: 3rem 0; }
    .about-us-title { font-size: 1.5rem; }
    .about-us-text { font-size: 0.95rem; }
}

/* =========================================
   12. CARD OVERHANG EFFECTS
   ========================================= */
.section-with-overhang {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.how-it-works.section-with-overhang { padding-bottom: 6rem !important; }

.steps-grid-overhang {
    position: relative;
    z-index: 2;
    margin-bottom: -5rem;
}

.step-card-overhang {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
}

.oh-section.section-with-overhang { padding-bottom: 6rem !important; }

.oh-services-overhang {
    position: relative;
    z-index: 2;
    margin-bottom: -5rem;
}

.oh-service-card-overhang {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
}

.expertise-section {
    padding-top: 7rem !important;
    position: relative;
    z-index: 1;
}

.about-us-section.section-with-overhang { padding-bottom: 6rem !important; }

.about-features-overhang {
    position: relative;
    z-index: 2;
    margin-bottom: -5rem;
}

.guarantee-section.section-with-overhang {
    padding-top: 0 !important;
    padding-bottom: 5rem;
    position: relative;
    z-index: 5;
    background: transparent;
}

.guarantee-content-overhang {
    position: relative;
    z-index: 10;
    margin-top: -6rem;
    margin-bottom: 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    padding: 4rem 2rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.guarantee-content-overhang::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
    transform: rotate(-15deg);
}

.ace-report-section {
    padding-top: 7rem !important;
    position: relative;
    z-index: 1;
}

#services-overview { padding-top: 7rem; }

/* Mobile: Reduce overhangs */
@media (max-width: 768px) {
    .steps-grid-overhang,
    .oh-services-overhang,
    .about-features-overhang { margin-bottom: 0; }
    
    .how-it-works.section-with-overhang,
    .oh-section.section-with-overhang,
    .about-us-section.section-with-overhang { padding-bottom: 3rem !important; }
    
    .expertise-section { padding-top: 3rem !important; }
    
    .guarantee-content-overhang {
        margin-top: 0;
        margin-bottom: 0;
        padding: 2rem 1.5rem;
    }
    
    .guarantee-section.section-with-overhang {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1f1a0f 100%);
    }
    
    .ace-report-section { padding-top: 3rem !important; }
    #services-overview { padding-top: 3rem; }
}

/* =========================================
   13. SPLIT SECTIONS
   ========================================= */
.split-section {
    padding: var(--sectionPadding);
}

.split-section .cs-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.split-media {
    grid-column: span 6;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-content { grid-column: span 6; }

.split-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.split-list li {
    position: relative;
    padding-left: 1.5rem;
}

.split-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

@media (max-width: 1023px) {
    .split-section .cs-container { grid-template-columns: 1fr; }
}
