
/* ==========================================
   FPK HOMEPAGE
   ========================================== */

.home-page {
    overflow: hidden;
    background: var(--bg-primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.home-hero {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #21130d;
}

/* Hero PNG image */

.home-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Dark gradient over the image */

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(15, 9, 6, 0.92) 0%,
        rgba(19, 10, 7, 0.78) 28%,
        rgba(19, 10, 7, 0.36) 60%,
        rgba(19, 10, 7, 0.12) 100%
    );
}

/* Bottom fade into the homepage background */

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        0deg,
        #110b08 0%,
        rgba(17, 11, 8, 0.55) 10%,
        transparent 35%
    );
}

.home-hero-container {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    min-height: 680px;
    padding: 55px 0 120px;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
}

/* FPK Logo */

.home-hero-logo {
    display: block;
    width: clamp(170px, 19vw, 250px);
    height: auto;
    margin-bottom: 12px;

    filter: drop-shadow(
        0 8px 25px rgba(0, 0, 0, 0.4)
    );
}

/* Main FPK title */

.home-hero-content h1 {
    margin: 0;

    font-size: clamp(75px, 10vw, 125px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;

    background: linear-gradient(
        180deg,
        #ffe3a0 0%,
        #ffae3f 45%,
        #dd6b21 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tagline */

.home-hero-tagline {
    display: block;
    margin: 14px 0 18px;

    color: #ffc16a;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 6px;
}

/* Description */

.home-hero-content p {
    max-width: 460px;
    margin-bottom: 28px;

    color: #eee0d3;
    font-size: 16px;
    line-height: 1.7;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hero buttons */

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.home-hero-buttons .btn {
    min-height: 52px;
    padding: 13px 22px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   FEATURE CARDS SECTION
   ========================================== */

.home-features {
    position: relative;
    z-index: 3;

    margin-top: -75px;
    padding-top: 0;
    padding-bottom: 65px;
}

/* Four-column desktop layout */

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Card styling */

.home-feature-card {
    display: flex;
    flex-direction: column;
    min-width: 0;

    background: linear-gradient(
        180deg,
        #29190f,
        #17100d 75%
    );

    border: 1px solid #604028;
    border-radius: 11px;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.home-feature-card:hover {
    transform: translateY(-5px);
    border-color: #e0923f;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   FEATURE PNG IMAGES
   ========================================== */

.home-feature-image {
    position: relative;
    flex-shrink: 0;

    width: 100%;
    height: 220px;

    overflow: hidden;
    background: #392419;
}

/* Image inside each card */

.home-feature-image img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transition: transform 0.35s ease;
}

/* Slight zoom on hover */

.home-feature-card:hover .home-feature-image img {
    transform: scale(1.06);
}

/* Gradient at bottom of card image */

.home-feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        180deg,
        transparent 35%,
        rgba(28, 18, 13, 0.2) 65%,
        #1c120d 100%
    );

    pointer-events: none;
}

/* ==========================================
   FEATURE CARD CONTENT
   ========================================== */

.home-feature-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    flex: 1;
    padding: 0 20px 22px;
}

/* Floating card icon */

.home-feature-icon {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-top: -24px;
    margin-bottom: 13px;

    background: #392014;
    border: 1px solid #965c2b;
    border-radius: 10px;

    color: #ffaf45;
    font-size: 21px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Card titles */

.home-feature-content h2 {
    margin: 0 0 9px;

    color: #fff3e7;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

/* Card description */

.home-feature-content p {
    margin: 0 0 20px;

    color: #cbb8a8;
    font-size: 14px;
    line-height: 1.6;
}

/* Card links */

.home-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: auto;
    padding: 9px 14px;

    border: 1px solid #a3652f;
    border-radius: 7px;

    background: #28180f;
    color: #ffbb62;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.home-feature-link:hover {
    background: #4a2a16;
    color: #ffd18b;
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */

.home-community {
    padding-top: 0;
    padding-bottom: 90px;
}

.home-community-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

    min-height: 360px;

    background: linear-gradient(
        135deg,
        #2b190f,
        #130d0a
    );

    border: 1px solid #754825;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   COMMUNITY BANNER PNG
   ========================================== */

.home-community-image {
    position: relative;
    min-height: 360px;

    overflow: hidden;
    background: #3c2417;
}

.home-community-image img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

/* Fade image into content */

.home-community-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
        transparent 65%,
        rgba(34, 20, 14, 0.8) 100%
    );

    pointer-events: none;
}

/* ==========================================
   COMMUNITY CONTENT
   ========================================== */

.home-community-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px 45px;
}

/* Small label */

.home-section-label {
    margin-bottom: 14px;

    color: #ffb04d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
}

/* Community title */

.home-community-content h2 {
    margin-bottom: 15px;

    font-size: clamp(29px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.15;
}

/* Community description */

.home-community-content p {
    max-width: 550px;
    margin-bottom: 25px;

    color: #d3bfb0;
    font-size: 15px;
    line-height: 1.7;
}

/* Benefits grid */

.home-community-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    text-align: center;
}

.home-benefit i {
    color: #ffac42;
    font-size: 25px;
}

.home-benefit span {
    color: #eee0d3;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.home-page a:focus-visible {
    outline: 2px solid #ffc16a;
    outline-offset: 4px;
}

/* ==========================================
   TABLET RESPONSIVE
   ========================================== */

@media (max-width: 1100px) {

    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero {
        min-height: 600px;
    }

    .home-hero-container {
        min-height: 600px;
    }

    .home-community-content {
        padding: 35px 25px;
    }

    .home-community-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 700px) {

    .home-hero {
        min-height: 600px;
    }

    .home-hero-background {
        object-position: 65% center;
    }

    .home-hero::before {
        background: linear-gradient(
            90deg,
            rgba(15, 9, 6, 0.90) 0%,
            rgba(19, 10, 7, 0.70) 55%,
            rgba(19, 10, 7, 0.35) 100%
        );
    }

    .home-hero-container {
        min-height: 600px;
        align-items: center;
        padding: 45px 0 90px;
    }

    .home-hero-logo {
        width: 170px;
    }

    .home-hero-content h1 {
        font-size: 85px;
    }

    .home-hero-tagline {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .home-hero-content p {
        font-size: 14px;
    }

    /* Feature section */

    .home-features {
        margin-top: -35px;
        padding-bottom: 45px;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-feature-image {
        height: 220px;
    }

    /* Community section */

    .home-community {
        padding-bottom: 50px;
    }

    .home-community-container {
        grid-template-columns: 1fr;
    }

    .home-community-image {
        min-height: 260px;
    }

    .home-community-image::after {
        background: linear-gradient(
            180deg,
            transparent 60%,
            rgba(34, 20, 14, 0.7) 100%
        );
    }

    .home-community-content {
        padding: 30px 22px;
    }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 420px) {

    .home-hero-content h1 {
        font-size: 70px;
    }

    .home-hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero-buttons .btn {
        width: 100%;
    }

    .home-community-benefits {
        gap: 20px 10px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .home-feature-card,
    .home-feature-link,
    .home-feature-image img {
        transition: none;
    }

    .home-feature-card:hover,
    .home-feature-card:hover .home-feature-image img {
        transform: none;
    }
}
