/* ============================================================
   Errant Arts – Front Page (landing page) styles
   Only loaded on front-page.php via functions.php enqueue.
   ============================================================ */

/* ---- Hero ---- */
.fp-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    align-items: center;
}

.fp-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Dual gradient: top-left vignette + bottom fade for text legibility */
.fp-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient( 120deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.05) 55% ),
        linear-gradient( to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 45% );
    pointer-events: none;
    z-index: 1;
}

/* ---- Hero content ---- */
.fp-hero__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 0 2.5rem;
    margin-top: -3rem; /* optical centre – above true centre */
}

.fp-hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.fp-hero__title {
    font-size: clamp( 2.4rem, 5.5vw, 4rem );
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    margin: 0 0 0.75rem;
    text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}

.fp-hero__title span {
    color: #c37a45;
    display: block;
    font-weight: 400;
    font-style: italic;
    font-size: 0.75em;
    letter-spacing: 0.04em;
    text-shadow: none;
}

.fp-hero__sub {
    font-size: clamp( 0.9rem, 1.6vw, 1.05rem );
    color: rgba(255,255,255,0.78);
    margin: 0 0 1.8rem;
    line-height: 1.65;
    max-width: 480px;
}

/* ---- CTA buttons ---- */
.fp-hero__ctas {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.fp-btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fp-btn--primary {
    background: #c37a45;
    color: #fff;
    box-shadow: 0 4px 16px rgba(195,122,69,0.35);
}

.fp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(195,122,69,0.5);
    color: #fff;
    text-decoration: none;
}

.fp-btn--ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.fp-btn--ghost:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    text-decoration: none;
}

/* ---- Slide info (current image title / price) ---- */
.fp-hero__slide-info {
    position: absolute;
    bottom: 4.5rem;
    right: 2rem;
    z-index: 3;
    text-align: right;
    pointer-events: auto;
}

.fp-hero__slide-link {
    display: block;
    text-decoration: none;
}

.fp-hero__slide-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.fp-hero__slide-price {
    display: block;
    font-size: 0.82rem;
    color: #c37a45;
    font-weight: 700;
    margin-top: 0.15rem;
}

.fp-hero__slide-price .woocommerce-Price-amount { color: #c37a45 !important; }

/* ---- Controls ---- */
.fp-hero__controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.fp-ctrl {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.18s, transform 0.15s;
    padding: 0;
    line-height: 1;
}

.fp-ctrl:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.12);
}

/* ---- Progress bar ---- */
.fp-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.12);
    z-index: 3;
}

.fp-progress-bar {
    height: 100%;
    width: 0;
    background: #c37a45;
    border-radius: 0 2px 2px 0;
}

/* ---- Scroll cue ---- */
.fp-scroll-cue {
    position: absolute;
    bottom: 1.6rem;
    right: 2rem;
    z-index: 3;
    color: rgba(255,255,255,0.5);
    animation: fp-bounce 2s ease-in-out infinite;
    display: none; /* shown only when no slide-info */
}

@keyframes fp-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ============================================================
   Featured works grid
   ============================================================ */
.fp-featured {
    padding: 5rem 0 4rem;
    background: var(--color-bg, #f9f7f4);
}

.fp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fp-section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--color-heading, #1a1a1a);
    margin: 0;
}

.fp-see-all {
    font-size: 0.88rem;
    font-weight: 700;
    color: #c37a45;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.fp-see-all:hover { text-decoration: underline; }

/* 4 columns desktop, 2 tablet, 1 mobile */
.fp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) { .fp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .fp-grid { grid-template-columns: 1fr; } }

/* ---- Product card ---- */
.fp-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.fp-card__link { display: block; text-decoration: none; color: inherit; }

.fp-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.fp-card__viewer {
    width: 100%;
    height: 100%;
    display: block;
}

.fp-card__viewer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.fp-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.fp-card:hover .fp-card__overlay { opacity: 1; }

.fp-card__cta {
    background: #c37a45;
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.fp-card__info { padding: 0.85rem 1rem; }

.fp-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-card__price {
    font-size: 0.88rem;
    color: #c37a45;
    font-weight: 700;
    margin: 0;
}

/* ============================================================
   Categories
   ============================================================ */
.fp-categories {
    padding: 4rem 0;
    background: var(--color-surface, #fff);
}

.fp-categories .fp-section-title { margin-bottom: 1.8rem; }

.fp-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.fp-cat-tile {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: #f3ede6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fp-cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.fp-cat-tile__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.fp-cat-tile__placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c37a45;
    background: #ede5dc;
}

.fp-cat-tile__label {
    padding: 0.7rem 0.9rem;
}

.fp-cat-tile__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.fp-cat-tile__count {
    display: block;
    font-size: 0.76rem;
    color: #888;
    margin-top: 0.1rem;
}

/* ============================================================
   Testimonials
   ============================================================ */
.fp-testimonials {
    padding: 4.5rem 0;
    background: #1a1a1a;
}

.fp-testimonials .fp-section-title { color: #fff; margin-bottom: 2rem; }

.fp-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.fp-testimonial {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
}

.fp-testimonial__body {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    font-style: italic;
}

.fp-testimonial__author {
    font-size: 0.82rem;
    color: #c37a45;
    font-weight: 700;
    margin-top: 1rem;
    letter-spacing: 0.04em;
}

/* ============================================================
   CTA strip
   ============================================================ */
.fp-cta-strip {
    padding: 4rem 0;
    background: #c37a45;
}

.fp-cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.fp-cta-strip__text h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
}

.fp-cta-strip__text p {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    margin: 0;
    max-width: 480px;
}

.fp-cta-strip .fp-btn--primary {
    background: #fff;
    color: #c37a45;
    box-shadow: none;
    flex-shrink: 0;
}

.fp-cta-strip .fp-btn--primary:hover {
    background: #f5ede4;
    color: #c37a45;
    box-shadow: none;
}

/* ============================================================
   Footer v2
   ============================================================ */
.site-footer {
    background: #1e2028;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
    align-items: start;
}

@media (max-width: 900px)  { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; } }

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__site-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.site-footer__tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    letter-spacing: 0.04em;
}

.site-footer__col-title {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    margin: 0 0 0.9rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__links a:hover {
    color: #c37a45;
    text-decoration: none;
}

/* Bottom bar */
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 0;
}

.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer__copy,
.site-footer__legal {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
}

/* ============================================================
   Responsive hero
   ============================================================ */
@media (max-width: 768px) {
    .fp-hero__content    { padding: 0 1.25rem; margin-top: 0; }
    .fp-hero__slide-info { right: 1rem; bottom: 4rem; }
    .fp-hero__title      { font-size: 2rem; }
    .fp-hero__ctas       { flex-direction: column; }
    .fp-btn              { text-align: center; }
}
