/* =============================================================
   CUSTOM HOMEPAGE — SELF-CONTAINED STYLESHEET
   For use with Astra Child Theme (template-custom-homepage.php)
   ============================================================= */

/* =====================================================
   0. DESIGN TOKENS (CSS Custom Properties)
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;

    /* Premium Color Palette */
    --color-primary: #0F382E;       /* Deep Emerald Green */
    --color-primary-hover: #09261F; /* Dark Forest Green */
    --color-accent-sand: #C8A261;   /* Luxury Sand Gold */
    --color-bg-oat: #FAF8F5;        /* Soft Cream Oat */
    --color-oat-card: #EADEC9;      /* Medium Warm Oat Card */
    --color-oat-light: #F4EFE6;     /* Light Warm Oat */
    --color-dark: #1F2623;           /* Muted Olive Charcoal */
    --color-dark-muted: #5C6863;     /* Sage Charcoal */
    --color-light: #FFFFFF;
    --color-border: #E5E0D8;         /* Soft Sand Border */

    /* Typography Sizes */
    --h1-size: 3.8rem;
    --h2-size: 2.4rem;
    --h3-size: 1.6rem;
    --body-size: 0.95rem;
    --meta-size: 0.8rem;

    /* Grid & Animations */
    --site-max-width: 1440px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =====================================================
   ASTRA CONTAINER OVERRIDES (For Custom Homepage)
   ===================================================== */
/* Force Astra's container to be full width and block level on this template */
.page-template-template-custom-homepage .ast-container,
.page-template-template-custom-homepage .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
.custom-homepage-wrapper {
    width: 100%;
    display: block;
    overflow-x: hidden;
}

/* =====================================================
   BUTTONS (used across homepage sections)
   ===================================================== */
.btn-outline-gold {
    background-color: transparent;
    color: var(--color-light);
    padding: 16px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--color-accent-sand);
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    cursor: pointer;
}
.btn-outline-gold:hover {
    background-color: var(--color-accent-sand);
    color: var(--color-primary);
    transform: translateY(-3px);
}


/* =====================================================
   1. HERO SLIDER
   ===================================================== */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--color-primary-hover);
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(9, 38, 31, 0.6) 0%, rgba(9, 38, 31, 0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--color-light);
    max-width: 700px;
    padding: 0 80px;
}

.slide-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent-sand);
    margin-bottom: 20px;
    display: block;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: var(--h1-size);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--color-light);
}

.slide-discount {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--color-oat-light);
    letter-spacing: 1px;
}

.slide-buttons {
    display: flex;
    gap: 20px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(250, 248, 245, 0.1);
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 10;
    border: 1px solid rgba(250, 248, 245, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.slider-arrow:hover {
    background-color: var(--color-accent-sand);
    color: var(--color-primary);
    border-color: var(--color-accent-sand);
}

.slider-arrow.prev {
    left: 40px;
}

.slider-arrow.next {
    right: 40px;
}


/* =====================================================
   SHARED HOMEPAGE TOKENS
   ===================================================== */
.fp-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.fp-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-sand);
    margin-bottom: 12px;
}
.fp-label--light { color: rgba(255,255,255,0.6); }

.fp-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.15;
    margin: 0;
}
.fp-heading--light { color: #fff; }

.fp-subtext {
    font-size: 1.05rem;
    color: var(--color-dark-muted);
    max-width: 520px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.fp-section-header {
    margin-bottom: 50px;
}
.fp-section-header--center {
    text-align: center;
}

.fp-section-cta {
    text-align: center;
    margin-top: 50px;
}


/* =====================================================
   HOMEPAGE BUTTONS
   ===================================================== */
.fp-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 0;
    transition: all 0.35s ease;
    cursor: pointer;
}
.fp-btn--outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}
.fp-btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.fp-btn--gold {
    border: 1px solid var(--color-accent-sand);
    color: var(--color-accent-sand);
    background: transparent;
}
.fp-btn--gold:hover {
    background: var(--color-accent-sand);
    color: #fff;
}


/* =====================================================
   2. CATEGORIES — EDITORIAL GRID
   ===================================================== */
.fp-categories {
    padding: 100px 0;
    background: #fff;
}

.fp-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 380px;
    gap: 12px;
}
.fp-cat-card--large {
    grid-column: span 2;
    grid-row: span 1;
}

.fp-cat-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}
.fp-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fp-cat-card:hover img {
    transform: scale(1.06);
}
.fp-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.4s ease;
}
.fp-cat-card:hover .fp-cat-card__overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}
.fp-cat-card__name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.fp-cat-card__cta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent-sand);
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.fp-cat-card:hover .fp-cat-card__cta {
    opacity: 1;
    transform: translateY(0);
}
.fp-cat-card__cta i {
    margin-left: 6px;
    font-size: 0.7rem;
}

@media (max-width: 991px) {
    .fp-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
    .fp-cat-card--large { grid-column: span 1; }
}
@media (max-width: 575px) {
    .fp-cat-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    .fp-categories { padding: 60px 0; }
}


/* =====================================================
   3 & 6. PRODUCT GRIDS
   ===================================================== */
.fp-products {
    padding: 100px 0;
}
.fp-products--popular {
    background: var(--color-bg-oat);
}
.fp-products--recent {
    background: #fff;
}

.fp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.fp-product-card {
    background: #fff;
    transition: transform 0.3s ease;
}
.fp-products--popular .fp-product-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.fp-product-card__image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-bg-oat);
}
.fp-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.fp-product-card:hover .fp-product-card__image img {
    transform: scale(1.05);
}

.fp-product-card__hover {
    position: absolute;
    inset: 0;
    background: rgba(15, 56, 46, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fp-product-card:hover .fp-product-card__hover {
    opacity: 1;
}
.fp-product-card__hover span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.fp-product-card:hover .fp-product-card__hover span {
    border-color: #fff;
}

.fp-product-card__info {
    padding: 20px 16px;
    text-align: center;
}
.fp-product-card__info h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.fp-product-card__info h3 a {
    color: var(--color-primary);
    text-decoration: none;
}
.fp-product-card__info h3 a:hover {
    color: var(--color-accent-sand);
}
.fp-product-card__price {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark-muted);
}

@media (max-width: 1199px) {
    .fp-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .fp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .fp-products { padding: 60px 0; }
}
@media (max-width: 480px) {
    .fp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fp-product-card__info { padding: 12px 8px; }
    .fp-product-card__info h3 { font-size: 0.78rem; }
}


/* =====================================================
   4. ABOUT — CINEMATIC SPLIT
   ===================================================== */
.fp-about {
    background: var(--color-primary);
    overflow: hidden;
}
.fp-about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}
.fp-about__media {
    overflow: hidden;
}
.fp-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}
.fp-about:hover .fp-about__media img {
    transform: scale(1.03);
}
.fp-about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 100px);
    color: rgba(255,255,255,0.8);
}
.fp-about__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.fp-about__content .fp-heading {
    margin-bottom: 30px;
}
.fp-about__content .fp-btn {
    align-self: flex-start;
    margin-top: 16px;
}

@media (max-width: 991px) {
    .fp-about__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .fp-about__media { max-height: 400px; }
}


/* =====================================================
   5. TESTIMONIALS — EDITORIAL QUOTE
   ===================================================== */
.fp-testimonials {
    padding: 100px 0;
    background: var(--color-bg-oat);
}
.fp-testimonials__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.fp-testimonials__icon {
    font-size: 3rem;
    color: var(--color-accent-sand);
    opacity: 0.4;
    margin-bottom: 30px;
}
.fp-testimonials__slider {
    position: relative;
    min-height: 280px;
}
.fp-testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}
.fp-testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}
.fp-testimonial__quote {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 500;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.7;
    margin: 0 0 30px;
    border: none;
    padding: 0;
}
.fp-testimonial__stars {
    color: var(--color-accent-sand);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 24px;
}
.fp-testimonial__author {
    display: block;
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    text-transform: uppercase;
}
.fp-testimonial__location {
    display: block;
    font-size: 0.85rem;
    color: var(--color-dark-muted);
    margin-top: 6px;
}
.fp-testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.fp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.fp-dot.active {
    background: var(--color-accent-sand);
    transform: scale(1.2);
}

@media (max-width: 575px) {
    .fp-testimonials { padding: 60px 0; }
    .fp-testimonials__slider { min-height: 340px; }
}


/* =====================================================
   7. NEWSLETTER — DARK CINEMATIC CTA
   ===================================================== */
.fp-newsletter {
    padding: 100px 0;
    background: var(--color-primary);
}
.fp-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}
.fp-newsletter__text {
    flex: 1;
    color: rgba(255,255,255,0.8);
}
.fp-newsletter__text .fp-heading {
    margin-bottom: 16px;
}
.fp-newsletter__text p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 460px;
}
.fp-newsletter__form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}
.fp-newsletter__form input {
    width: 300px;
    padding: 18px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.fp-newsletter__form input::placeholder {
    color: rgba(255,255,255,0.4);
}
.fp-newsletter__form input:focus {
    border-color: var(--color-accent-sand);
}
.fp-newsletter__form button {
    padding: 18px 36px;
    background: var(--color-accent-sand);
    color: #fff;
    border: 1px solid var(--color-accent-sand);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.fp-newsletter__form button:hover {
    background: transparent;
    color: var(--color-accent-sand);
}

@media (max-width: 768px) {
    .fp-newsletter__inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .fp-newsletter__text p { max-width: 100%; }
    .fp-newsletter__form {
        flex-direction: column;
        width: 100%;
    }
    .fp-newsletter__form input { width: 100%; }
    .fp-newsletter { padding: 60px 0; }
}


/* =====================================================
   HERO SLIDER — RESPONSIVE OVERRIDES
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --h1-size: 2.4rem;
        --h2-size: 1.8rem;
    }

    .hero-slider {
        height: 70vh;
    }

    .slide-content {
        padding: 0 40px;
    }

    .slide-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        min-height: 450px;
    }

    .slide-content {
        padding: 0 24px;
    }

    .slide-discount {
        font-size: 1.2rem;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .slider-arrow.prev { left: 16px; }
    .slider-arrow.next { right: 16px; }
}
