/* Winsome Partners & Investors Custom Stylesheet */

/* --- Hero Section Override (To resolve huge top spacing) --- */
.centered-heading-section {
    min-height: 30vh;
    margin-top: 2vh;
}

/* --- General Layout --- */
.partners-investors-section {
    padding: 3rem 6% 5rem 6%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Grid Systems --- */
.pi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.pi-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: stretch; /* Align heights of image and form blocks on desktop */
}

@media (max-width: 1024px) {
    .pi-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .pi-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .pi-grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .pi-grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pi-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Premium Cards (Light Theme) --- */
.pi-card {
    background: #ffffff;
    border: 1px solid rgba(80, 106, 28, 0.12);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(12, 16, 4, 0.04);
}

/* --- Step Cards for Process Grids --- */
.pi-step-card {
    background: #ffffff;
    border: 1px solid rgba(80, 106, 28, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(12, 16, 4, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pi-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    box-shadow: 0 20px 40px rgba(80, 106, 28, 0.08);
}
.pi-step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}
.pi-step-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
}
.pi-step-card p {
    font-size: 0.85rem;
    color: rgba(12, 16, 4, 0.65);
    line-height: 1.5;
    margin: 0;
}

.pi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pi-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 20px 40px rgba(80, 106, 28, 0.08);
    background: #ffffff;
}

.pi-card:hover::before {
    transform: scaleX(1);
}

.pi-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pi-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(12, 16, 4, 0.72);
    line-height: 1.7;
    margin: 0;
}

.pi-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(80, 106, 28, 0.06);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.pi-card:hover .pi-card-icon {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.05) rotate(4deg);
}

/* --- Section Title Overrides --- */
.pi-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pi-section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(12, 16, 4, 0.72);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

/* --- Interactive Forms (Light Theme) --- */
.pi-form-container {
    background: #ffffff;
    border: 1px solid rgba(80, 106, 28, 0.15);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 40px rgba(12, 16, 4, 0.05);
    position: relative;
    overflow: hidden;
}

.pi-form-container h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pi-form-container .form-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(12, 16, 4, 0.6);
    margin-bottom: 2.5rem;
}

.pi-form {
    display: grid;
    gap: 1.75rem;
}

.pi-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.pi-form-group label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pi-input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid rgba(80, 106, 28, 0.25);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.pi-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.pi-input::placeholder {
    color: rgba(12, 16, 4, 0.35);
}

textarea.pi-input {
    min-height: 120px;
    resize: vertical;
}

.pi-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23506a1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.1rem;
    padding-right: 3rem;
    color: var(--color-text);
}

.pi-select option {
    background: #ffffff;
    color: var(--color-text);
}

/* Floating validation error message styling */
.pi-form-group .error-message {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #c92a2a;
    margin-top: 0.25rem;
    display: none;
}

.pi-input.error {
    border-color: #c92a2a;
    box-shadow: 0 0 10px rgba(201, 42, 42, 0.1);
}

.pi-input.error + .error-message {
    display: block;
}

/* Form Action Buttons */
.pi-submit-btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0.5rem;
}

.pi-submit-btn:hover {
    background: var(--color-gold);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.pi-submit-btn svg {
    transition: transform 0.3s ease;
}

.pi-submit-btn:hover svg {
    transform: translateX(4px);
}

/* --- Inline Form Success Screen --- */
.pi-success-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 5;
}

.pi-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.pi-success-icon {
    width: 70px;
    height: 70px;
    background: rgba(80, 106, 28, 0.08);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pi-success-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.pi-success-overlay p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(12, 16, 4, 0.7);
    max-width: 450px;
    line-height: 1.6;
}

/* --- Image Features --- */
.pi-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(80, 106, 28, 0.15);
    height: 100%;
    min-height: 480px;
    box-shadow: 0 20px 40px rgba(12, 16, 4, 0.06);
}

.pi-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pi-image-wrapper:hover img {
    transform: scale(1.06);
}

.pi-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 16, 4, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: #ffffff;
}

.pi-image-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.pi-image-overlay p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

/* --- Metrics Grid --- */
.pi-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.pi-metric-item {
    background: #ffffff;
    border: 1px solid rgba(80, 106, 28, 0.12);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(12, 16, 4, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pi-metric-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(80, 106, 28, 0.08);
    border-color: rgba(80, 106, 28, 0.25);
}

.pi-metric-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.pi-metric-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(12, 16, 4, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CTA Section --- */
.properties-cta-section {
    padding: 6rem 6%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.properties-cta-section h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.properties-cta-section p {
    font-size: 1.05rem;
    color: rgba(12, 16, 4, 0.7);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .pi-metrics-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .pi-image-wrapper {
        height: 380px;
        min-height: auto;
    }
    .properties-cta-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .pi-metrics-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pi-form-container {
        padding: 2rem 1.25rem;
    }
    .pi-form {
        gap: 1.25rem;
    }
    .pi-input {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    .pi-select {
        background-position: right 1rem center;
        background-size: 1rem;
        padding-right: 2.5rem;
    }
    .pi-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
    }
    .pi-form-container h3 {
        font-size: 1.4rem;
    }
    .pi-form-container .form-desc {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
    }
    .pi-card {
        padding: 1.25rem !important;
    }
    .pi-card h4 {
        font-size: 0.85rem !important;
    }
    .pi-card p {
        font-size: 0.8rem !important;
    }
    .pi-image-wrapper {
        min-height: 300px;
        height: 300px;
    }
    .pi-image-overlay {
        padding: 1.5rem;
    }
    .pi-image-overlay h4 {
        font-size: 1.2rem;
    }
    .pi-image-overlay p {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .pi-grid-4 {
        gap: 0.75rem;
    }
    .pi-step-card {
        padding: 1rem 0.85rem;
    }
    .pi-step-card h4 {
        font-size: 0.85rem;
    }
    .pi-step-card p {
        font-size: 0.78rem;
    }
    .pi-step-num {
        font-size: 1.2rem;
    }
    .pi-form-container {
        padding: 1.5rem 1rem;
    }
    .pi-form {
        gap: 1rem;
    }
    .pi-input {
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
    }
    .pi-form-group label {
        font-size: 0.7rem;
    }
    .pi-submit-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    .pi-form-container h3 {
        font-size: 1.2rem;
    }
    .pi-form-container .form-desc {
        font-size: 0.82rem;
        margin-bottom: 1.25rem;
    }
    .pi-section-header h2 {
        font-size: 1.3rem !important;
    }
    .pi-image-wrapper {
        min-height: 240px;
        height: 240px;
    }
    .properties-cta-section h2 {
        font-size: 1.6rem;
    }
    .properties-cta-section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .pi-step-card {
        padding: 0.85rem 0.65rem;
    }
    .pi-step-card h4 {
        font-size: 0.78rem;
    }
    .pi-step-card p {
        font-size: 0.72rem;
    }
    .pi-step-num {
        font-size: 1.1rem;
    }
    .pi-form-container {
        padding: 1.25rem 0.75rem;
        border-radius: 14px;
    }
    .pi-form {
        gap: 0.85rem;
    }
    .pi-input {
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }
    .pi-form-container h3 {
        font-size: 1rem;
    }
    .pi-submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
    }
    .pi-image-wrapper {
        min-height: 200px;
        height: 200px;
        border-radius: 14px;
    }
    .pi-image-overlay {
        padding: 1rem;
    }
    .pi-image-overlay h4 {
        font-size: 1rem;
    }
    .pi-image-overlay p {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .pi-section-header h2 {
        font-size: 1.6rem !important;
    }
    .pi-section-header p {
        font-size: 0.9rem !important;
    }
    .pi-image-wrapper {
        min-height: 260px;
        height: auto;
    }
    .pi-image-overlay {
        padding: 1.5rem;
        justify-content: flex-end;
        background: linear-gradient(180deg, transparent 20%, rgba(12, 16, 4, 0.9) 100%);
    }
    .pi-image-overlay h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    .pi-image-overlay p {
        font-size: 0.78rem;
        line-height: 1.4;
    }
    .pi-image-overlay .pre-title {
        margin-bottom: 0.3rem !important;
    }
}

@media (max-width: 480px) {
    .partners-investors-section {
        padding: 1.5rem 4% 2.5rem 4%;
    }
    .pi-card {
        padding: 1.2rem;
    }
    .pi-card h3 {
        font-size: 1.1rem;
    }
    .pi-card p {
        font-size: 0.85rem;
    }
    .pi-section-title {
        font-size: 1.5rem;
    }
    .pi-section-subtitle {
        font-size: 0.9rem;
    }
    .pi-form-container {
        padding: 1.2rem 0.8rem;
    }
    .pi-input, .pi-select, textarea.pi-input {
        font-size: 1rem;
    }
    .pi-form-group label {
        font-size: 0.68rem;
    }
    .pi-submit-btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.9rem 1.2rem;
    }
    .pi-image-wrapper {
        min-height: 200px;
        height: auto;
    }
    .pi-image-overlay {
        padding: 1rem;
    }
    .pi-image-overlay h4 {
        font-size: 1rem;
    }
    .pi-image-overlay p {
        font-size: 0.75rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .pi-image-overlay .pre-title {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }
    .pi-metric-number {
        font-size: 2rem;
    }
    .properties-cta-section {
        padding: 2rem 5%;
    }
    .properties-cta-section h2 {
        font-size: 1.4rem;
    }
    .pi-grid-2 {
        gap: 1.2rem;
    }
    .pi-section-header {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .pi-section-header h2 {
        font-size: 1.3rem !important;
    }
    .pi-section-header p {
        font-size: 0.82rem !important;
        margin-top: 0.5rem !important;
    }
}
