/*
Theme Name: SS Associates
Text Domain: ss-associates
Version: 1.0.0
Description: Custom theme for SS Associates.
Author: Rohan T Villarosa
*/

/* --- Global Variables --- */
:root {
    --primary-color: #C39C54;
    --primary-light: #e0b86b;
    --primary-dark: #a88544;
    --text-light: #ffffff;
    --text-dark: #1f1f1f;
    --font-main: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* --- Typography --- */
.fs-xxxl {
    font-size: clamp(2.5rem, 5.5vw, 6rem);
    font-weight: bold;
}

.fs-xxl {
    font-size: clamp(2rem, 4vw, 4.5rem);
}

.fs-xl {
    font-size: clamp(1.75rem, 3vw, 3rem);
}

.fs-lg {
    font-size: clamp(1.5rem, 2vw, 2.25rem);
}

.fs-md {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.fs-rg {
    font-size: 1rem;
}

.fs-sm {
    font-size: 0.85rem;
}

.fs-xs {
    font-size: 0.75rem;
}



/* --- Base Styles --- */
html.lenis,
html.lenis body {
    height: auto;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: #000;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    border-radius: 5px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--text-light);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-dark);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.arrow-up-right {
    margin-right: 0.5rem;
    font-size: 1.1em;
    font-weight: bold;
}

/* --- Hero Section --- */
.hero-section {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Add a dark gradient at the bottom for readability of text */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 40%);
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.header-logo-img {
    height: 40px;
    width: auto;
    transition: filter 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

/* --- Sticky Header Scrolled State --- */
.site-header.is-stuck {
    position: fixed;
    background-color: #ffffff;
    padding: 1rem 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.is-stuck .header-logo-img {
    filter: brightness(0);
    /* Turn white logo to black */
    opacity: 1;
    pointer-events: auto;
}

.site-header.is-stuck .btn-secondary {
    border-color: var(--text-dark);
}

.header-right {
    display: flex;
    gap: 1rem;
}

.menu-icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
    font-weight: normal;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 2rem 4rem 4rem 4rem;
}

.hero-text-content {
    flex: 1;
    min-width: 320px;
    padding-bottom: 2rem;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 400;
}

.hero-title {
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    line-height: 1.5;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 550px;
}

.hero-cta {
    display: inline-flex;
    align-items: end;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.hero-cta:hover {
    color: var(--primary-color);
}

.hero-scroll-indicator {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2.5rem;
    width: 100px;
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--text-light);
    border-radius: 12px;
    position: relative;
    opacity: 0.8;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 2px;
    animation: scrollMouse 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        /* opacity: 1; */
    }

    100% {
        top: 16px;
        /* opacity: 0; */
    }
}

.hero-featured-card {
    width: 380px;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.card-image-wrap {
    height: 190px;
    background-color: #0B162C;
    /* Dark blue background from the blueprint image */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-placeholder-content {
    text-align: center;
    color: var(--primary-color);
}

.card-blueprint-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.card-content {
    padding: 1.5rem 1.8rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--primary-color);
}

/* --- About Section --- */
.about-section {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 6rem 4rem;
}

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

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.diamond-icon {
    font-size: 2em;
    vertical-align: middle;
    margin-right: 0.25rem;
    margin-bottom: 5px;
}

.section-title {
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    /* font-weight: 600; */
}

.section-desc {
    max-width: 800px;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.stat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-heading {
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stat-text {
    opacity: 0.7;
    line-height: 1.5;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {

    header .btn {
        padding: 0.5rem 1rem
    }

    .hero-text-content {
        flex: 0;
    }

    .site-header.is-stuck {
        padding: 1rem 1.5rem;
    }

    .hero-brand img,
    .header-logo-img {
        height: 30px;
    }

    .site-header {
        padding: 1.5rem 1.5rem;
    }

    .btn-discovery {
        display: none;
    }

    .hero-content {
        padding: 3rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-featured-card {
        width: 70%;
        max-width: 450px;
        margin-bottom: 0;
    }

    .card-image-wrap {
        height: 120px;
    }

    .card-subtitle {
        margin-bottom: 0.5rem;
    }

    .card-content {
        padding: 0.5rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .about-section {
        padding: 4rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Generic GSAP Reveal Classes */
.text-mask {
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

.line {
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

.img-reveal {
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
    position: relative;
}

.img-reveal img {
    transform: scale(1.2);
    transform-origin: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition via gsap */
}

/* --- Trusted by Builders Section --- */
.trusted-builders-section {
    background-color: #ffffff;
    padding: 4rem 4rem;
    position: relative;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

.trusted-title {
    text-align: center;
    color: #1a2238;
    /* dark bluish matching screenshot */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.builders-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;

}

.builder-logo-wrap {

    border-radius: 8px;
    padding: 1.5rem;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.builder-logo-wrap:hover {
    transform: translateY(-5px);
}

.builder-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) contrast(0.4);
    transition: filter 0.3s ease;
}

.builder-logo-wrap img:hover {
    filter: none;
}

@media (max-width: 768px) {
    .builder-logo-wrap {
        width: calc(50% - 0.75rem);
        height: 100px;
        padding: 1rem;
    }
}

/* --- Process Section --- */


.process-section {
    background-color: #ffffff;
    padding: 6rem 4rem;
    color: var(--text-dark);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.process-header-left .section-title {
    color: var(--text-dark);
}

.process-carousel-card {
    position: relative;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    background-color: #fdfaf5;
    overflow: hidden;

    display: flex;
}

.process-swiper {
    width: 100%;
    height: 100%;

}

.process-slide {
    display: flex;
    position: relative;
    height: auto;
    min-height: 500px;
    align-items: stretch;

}

.slide-content {
    width: 55%;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.slide-step {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;

}

.slide-desc {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;

    margin-bottom: 3rem;
}

.slide-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    z-index: 10;
}

.slide-nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.swiper-pagination.process-pagination {
    display: flex;
    gap: 6px;
    position: static;
    width: auto;
}

.swiper-pagination.process-pagination .swiper-pagination-bullet {
    width: 18px;
    height: 6px;
    background-color: var(--primary-light);
    border-radius: 2px;
    margin: 0 !important;
    opacity: 0.6;
    transition: all 0.3s;
}

.swiper-pagination.process-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

.slide-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.slide-image img {
    /* Left arrow mask */
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 25% 100%, 0% 50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Success Stories Section --- */
.success-stories-section {
    background-color: #ffffff;
    padding: 6rem 4rem;
    color: var(--text-dark);
    overflow: hidden;
    /* handle bleeding carousel */
}

.success-stories-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.success-content {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
}

.success-nav {
    margin-top: 3rem;
}

.success-carousel {
    flex: 1;
    min-width: 0;
}

.success-swiper {
    overflow: visible;
    /* Allows the rightmost slide to bleed out */
}

.project-card {
    background-color: #fdfaf5;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.project-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.project-number {
    /* font-size: 1.25rem; */
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
}

.project-stats {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f1f1f;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trend-icon {
    display: inline-block;
    color: var(--text-dark);
    line-height: 0;
}

/* --- Reviews Section --- */
.reviews-section {
    background-color: #fdfaf5;
    padding: 6rem 4rem;
    color: var(--text-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.review-card {
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.review-card.large-card {
    justify-content: center;
}

.reviews-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reviewer-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.reviewer-meta .diamond-icon {
    font-size: 1.2rem;
}

.review-quote-large {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.review-quote {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.review-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

.quote-mark {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 12rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: #ffffff;
    opacity: 0.15;
    pointer-events: none;
}

/* --- Team Section --- */
.team-section {
    background-color: #ffffff;
    padding: 6rem 4rem;
    color: var(--text-dark);
}

/* --- CTA & Footer Section --- */
.site-footer {
    display: block;
    background-color: #eaddca;
    position: relative;
    overflow: hidden;
}

.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 4rem 12rem 4rem;
    color: #ffffff;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
}

.cta-gradient-overlay {
    position: absolute;
    inset: 0;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
    z-index: 1;
}

.cta-content {
    max-width: 1000px;
    margin-bottom: 6rem;

}



.cta-btn {
    background-color: #ffffff;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: none;
    padding: 1.2rem 2.8rem;
    font-size: 1rem;
    border-radius: 6px;
    border-color: #ffffff;
}

.cta-btn:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.cta-stats-overlay {
    display: flex;
    justify-content: space-around;
    padding-top: 4rem;
}

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

.stat-number {
    font-size: 5.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.cta-stat .stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.95;
}

.main-footer-block {
    padding: 6rem 4rem 2rem 4rem;
    position: relative;
    background-color: #eaddca;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6rem;
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 300px;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: auto;
}

.footer-logo-col .copyright {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
    color: #1A1A1A;
    margin-top: 8rem;
}

.footer-links-col {
    display: flex;
    gap: 8rem;
}

.footer-col-title {
    font-size: 0.75rem;
    color: #1A1A1A;
    opacity: 0.4;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu a {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 0.6;
}

.footer-watermark {
    text-align: center;
    width: 100%;
}

.footer-watermark-img {
    width: 100%;
    height: auto;
    opacity: 0.6;
    display: block;
}

@media (max-width: 992px) {
    .trusted-builders-section {
        padding: 3rem 1.5rem;
    }

    .success-stories-section {
        padding: 4rem 1.5rem;
    }

    .success-stories-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }

    .success-content {
        flex: 1 1 auto;
        width: 100%;
    }

    .success-carousel {
        width: 100%;
        display: block;
        min-width: 0;
    }

    .cta-section {
        padding: 4rem 1.5rem 8rem 1.5rem;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-stats-overlay {
        flex-direction: column;
        gap: 3rem;
        padding-top: 2rem;
    }

    .stat-number {
        font-size: 4rem;
    }

    .main-footer-block {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 4rem;
        margin-bottom: 4rem;
    }

    .footer-links-col {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-logo-col .copyright {
        margin-top: 3rem;
    }

    .reviews-section,
    .team-section {
        padding: 4rem 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-quote-large {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .quote-mark {
        font-size: 8rem;
    }

    .process-section {
        padding: 4rem 1.5rem;
    }

    .slide-controls {
        left: 2rem;
    }

    .process-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .slide-content {
        width: 100%;
        padding: 3rem 2rem;
    }

    .slide-image {
        display: none;

    }
}