/* ==========================================================================
   PLP Landing Page Styles
   Payroll Leadership Professional Designation
   ========================================================================== */

/* Google Fonts - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    --plp-purple: #320082;
    --plp-green: #2A9D7A;
    --plp-white: #ffffff;
    --plp-gray-50: #f9fafb;
    --plp-gray-100: #f3f4f6;
    --plp-gray-200: #e5e7eb;
    --plp-gray-300: #d1d5db;
    --plp-gray-400: #9ca3af;
    --plp-gray-500: #6b7280;
    --plp-gray-700: #374151;
    --plp-gray-800: #1f2937;
    --plp-gray-900: #111827;
}

/* Reset & Base */
.plp-body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--plp-gray-700);
    background-color: var(--plp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Link */
.plp-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background-color: var(--plp-green);
    color: var(--plp-white);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
}

.plp-skip-link:focus {
    top: 1rem;
    left: 1rem;
}

/* Container */
.plp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .plp-container {
        padding: 0 2rem;
    }
}

.plp-container-narrow {
    max-width: 56rem;
}

.plp-container-medium {
    max-width: 72rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.plp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--plp-gray-50);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--plp-gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.plp-header-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}

@media (min-width: 768px) {
    .plp-header-container {
        padding: 1.25rem 2rem;
    }
}

.plp-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plp-logo {
    height: 2.5rem;
    width: auto;
}

@media (min-width: 768px) {
    .plp-logo {
        height: 3.5rem;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.plp-btn {
    display: inline-block;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.plp-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 157, 122, 0.3);
}

.plp-btn-primary {
    background-color: var(--plp-green);
    color: var(--plp-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plp-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -5px rgba(42, 157, 122, 0.3);
}

.plp-btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
}

.plp-btn-lg {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .plp-btn-lg {
        width: auto;
        padding: 1.25rem 2.5rem;
        font-size: 1.125rem;
    }
}

.plp-btn-cta {
    background-color: var(--plp-green);
    color: var(--plp-white);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .plp-btn-cta {
        padding: 1.5rem 3rem;
        font-size: 1.25rem;
    }
}

.plp-btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.plp-main {
    padding-top: 73px; /* Header height */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.plp-hero {
    position: relative;
    background-color: var(--plp-white);
    overflow: hidden;
}

.plp-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .plp-hero-grid {
        padding: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .plp-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 3rem 0;
    }
}

/* On 1080p+ screens, use viewport height but leave room for scroll button */
@media (min-height: 900px) {
    .plp-hero-grid {
        min-height: calc(100vh - 73px - 10rem); /* header + scroll button area */
    }
}

.plp-hero-content {
    order: 2;
}

@media (min-width: 1024px) {
    .plp-hero-content {
        order: 1;
    }
}

.plp-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--plp-purple);
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .plp-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .plp-hero-title {
        font-size: 3.75rem;
    }
}

.plp-hero-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--plp-gray-700);
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .plp-hero-text {
        font-size: 1.25rem;
    }
}

.plp-hero-cta {
    padding-top: 0.5rem;
}

@media (min-width: 768px) {
    .plp-hero-cta {
        padding-top: 1rem;
    }
}

.plp-hero-image-wrapper {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .plp-hero-image-wrapper {
        order: 2;
        justify-content: flex-end;
    }
}

.plp-hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .plp-hero-image-container {
        max-width: 550px;
    }
}

.plp-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plp-hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(50, 0, 130, 0.1), transparent);
}

/* ==========================================================================
   Partnership Section
   ========================================================================== */
.plp-partnership {
    padding: 4rem 1rem;
    background: linear-gradient(to bottom, var(--plp-gray-50), var(--plp-white));
}

@media (min-width: 768px) {
    .plp-partnership {
        padding: 6rem 2rem;
    }
}

.plp-partnership-content {
    text-align: center;
}

.plp-partnership-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--plp-gray-800);
    margin: 0;
}

@media (min-width: 768px) {
    .plp-partnership-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .plp-partnership-text {
        font-size: 1.5rem;
    }
}

/* Bold purple text helper */
.plp-bold-purple {
    font-weight: 700;
    color: var(--plp-purple);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.plp-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--plp-purple);
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .plp-section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .plp-section-title {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.plp-stats {
    padding: 4rem 1rem;
    background-color: var(--plp-white);
}

@media (min-width: 768px) {
    .plp-stats {
        padding: 6rem 2rem;
    }
}

.plp-stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .plp-stats-header {
        margin-bottom: 4rem;
    }
}

.plp-stats-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .plp-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.plp-stat-card {
    position: relative;
    background-color: var(--plp-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plp-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.plp-stat-image-wrapper {
    position: relative;
    height: 20rem;
    overflow: hidden;
}

.plp-stat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.plp-stat-card:hover .plp-stat-image {
    transform: scale(1.1);
}

.plp-stat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 50%, transparent);
}

.plp-stat-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .plp-stat-content {
        padding: 2rem;
    }
}

.plp-stat-number {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--plp-white);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .plp-stat-number {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .plp-stat-number {
        font-size: 4.5rem;
    }
}

.plp-stat-text {
    color: var(--plp-white);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   Download/Form Section
   ========================================================================== */
.plp-download {
    padding: 4rem 1rem;
    background-color: var(--plp-gray-50);
}

@media (min-width: 768px) {
    .plp-download {
        padding: 6rem 2rem;
    }
}

.plp-download-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .plp-download-grid {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .plp-download-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.plp-download-form-wrapper {
    order: 1;
}

.plp-download-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plp-download-subtitle {
    font-size: 1.125rem;
    color: var(--plp-gray-700);
    line-height: 1.75;
    max-width: 36rem;
    margin: 1rem auto 0;
}

@media (min-width: 768px) {
    .plp-download-subtitle {
        font-size: 1.25rem;
    }
}

.plp-form-container {
    background: linear-gradient(to bottom right, var(--plp-gray-50), var(--plp-white));
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--plp-gray-100);
}

.plp-download-image-wrapper {
    position: relative;
    height: 400px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    order: 2;
}

@media (min-width: 768px) {
    .plp-download-image-wrapper {
        height: 500px;
    }
}

@media (min-width: 1024px) {
    .plp-download-image-wrapper {
        height: 600px;
    }
}

.plp-download-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plp-download-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(50, 0, 130, 0.95), rgba(50, 0, 130, 0.6) 50%, transparent);
}

.plp-download-features {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: var(--plp-white);
}

.plp-download-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.plp-download-feature span {
    font-size: 1.125rem;
    font-weight: 600;
}

.plp-check-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--plp-green);
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.plp-benefits {
    padding: 4rem 1rem;
    background-color: var(--plp-white);
}

@media (min-width: 768px) {
    .plp-benefits {
        padding: 6rem 2rem;
    }
}

.plp-benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .plp-benefits-header {
        margin-bottom: 4rem;
    }
}

.plp-benefits-card {
    background: linear-gradient(to bottom right, var(--plp-white), var(--plp-gray-50));
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--plp-gray-100);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .plp-benefits-card {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .plp-benefits-card {
        padding: 3.5rem;
    }
}

.plp-benefits-intro {
    font-size: 1rem;
    color: var(--plp-gray-700);
    line-height: 1.75;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .plp-benefits-intro {
        font-size: 1.125rem;
    }
}

.plp-benefits-intro p {
    margin: 0 0 1.5rem;
}

.plp-benefits-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .plp-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.plp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
}

.plp-benefit-item:hover {
    background-color: var(--plp-white);
}

.plp-benefit-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: var(--plp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plp-benefit-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.plp-benefit-item span {
    font-size: 1.125rem;
    color: var(--plp-gray-800);
    font-weight: 500;
    text-transform: capitalize;
}

.plp-benefits-callout {
    background: linear-gradient(to right, rgba(50, 0, 130, 0.05), rgba(42, 157, 122, 0.05));
    border-radius: 1rem;
    padding: 2rem;
    border-left: 4px solid var(--plp-green);
    margin-bottom: 1.5rem;
}

.plp-benefits-callout:last-child {
    margin-bottom: 0;
}

.plp-benefits-callout p {
    font-size: 1.125rem;
    color: var(--plp-gray-700);
    line-height: 1.75;
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.plp-cta {
    position: relative;
    padding: 5rem 1rem;
    overflow: hidden;
    background-color: var(--plp-purple);
}

@media (min-width: 768px) {
    .plp-cta {
        padding: 8rem 2rem;
    }
}

.plp-cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background:
        radial-gradient(circle at 20% 50%, rgba(52, 183, 143, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 183, 143, 0.2), transparent 50%);
}

.plp-cta-content {
    position: relative;
    text-align: center;
    color: var(--plp-white);
}

.plp-cta-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.plp-cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 2rem;
}

@media (min-width: 768px) {
    .plp-cta-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .plp-cta-title {
        font-size: 3.75rem;
    }
}

.plp-cta-text {
    font-size: 1.25rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    max-width: 48rem;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .plp-cta-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .plp-cta-text {
        font-size: 1.875rem;
    }
}

.plp-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .plp-cta-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .plp-cta-buttons {
        padding-top: 2rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.plp-footer {
    padding: 4rem 1rem;
    background-color: var(--plp-gray-900);
}

@media (min-width: 768px) {
    .plp-footer {
        padding: 4rem 2rem;
    }
}

.plp-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.plp-footer-logo {
    height: 3.5rem;
    width: auto;
}

@media (min-width: 768px) {
    .plp-footer-logo {
        height: 5rem;
    }
}

.plp-footer-text {
    text-align: center;
}

.plp-footer-copyright {
    font-size: 0.875rem;
    color: var(--plp-gray-400);
    margin: 0 0 0.5rem;
}

.plp-footer-tagline {
    font-size: 1rem;
    color: var(--plp-gray-500);
    margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.plp-fade-in {
    opacity: 0;
    transform: translateY(40px);
    animation: plpFadeInUp 0.6s ease forwards;
}

.plp-scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.plp-scroll-animate.plp-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes plpFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.plp-fade-in:nth-child(1) { animation-delay: 0.1s; }
.plp-fade-in:nth-child(2) { animation-delay: 0.2s; }
.plp-fade-in:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   Form Styles (for Kentico Form Widget)
   ========================================================================== */
.plp-form-container label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--plp-gray-700);
    margin-bottom: 0.5rem;
}

.plp-form-container input[type="text"],
.plp-form-container input[type="email"],
.plp-form-container input[type="tel"],
.plp-form-container textarea,
.plp-form-container select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--plp-gray-300);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.plp-form-container input:focus,
.plp-form-container textarea:focus,
.plp-form-container select:focus {
    outline: none;
    border-color: var(--plp-purple);
    box-shadow: 0 0 0 4px rgba(50, 0, 130, 0.1);
}

.plp-form-container .form-group,
.plp-form-container .editing-form-control-nested-control {
    margin-bottom: 1rem;
}

.plp-form-container input[type="submit"],
.plp-form-container button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--plp-green);
    color: var(--plp-white);
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plp-form-container input[type="submit"]:hover,
.plp-form-container button[type="submit"]:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(42, 157, 122, 0.4);
}

.plp-form-container .form-control-error,
.plp-form-container .field-validation-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Required field indicator */
.plp-form-container .required-mark {
    color: var(--plp-purple);
}

/* ==========================================================================
   Scroll Down Indicator (Hero section only)
   Optimized for 1080p monitors (1920x1080) and above
   ========================================================================== */
.plp-section-with-scroll {
    position: relative;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .plp-section-with-scroll {
        padding-bottom: 6rem;
    }
}

@media (min-height: 900px) {
    .plp-section-with-scroll {
        padding-bottom: 7rem;
    }
}

.plp-scroll-down {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--plp-purple);
    transition: all 0.3s ease;
    padding: 0.5rem;
    z-index: 10;
}

@media (min-width: 768px) {
    .plp-scroll-down {
        bottom: 1.5rem;
    }
}

@media (min-height: 900px) {
    .plp-scroll-down {
        bottom: 2rem;
    }
}

.plp-scroll-down:hover {
    transform: translateX(-50%) scale(1.1);
    color: var(--plp-green);
}

.plp-scroll-down:focus {
    outline: none;
}

.plp-scroll-down:focus-visible {
    outline: 2px solid var(--plp-green);
    outline-offset: 4px;
    border-radius: 50%;
}

.plp-scroll-icon {
    width: 3rem;
    height: 3rem;
    animation: plpBounce 2s infinite;
}

@media (min-width: 768px) {
    .plp-scroll-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .plp-scroll-icon {
        width: 4rem;
        height: 4rem;
    }
}

@keyframes plpBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* Hide scroll indicator on very small screens */
@media (max-height: 500px) {
    .plp-scroll-down {
        display: none;
    }
    .plp-section-with-scroll {
        padding-bottom: 0;
    }
}
