/**
 * WehFiGo Child Theme - custom styles
 * Loaded after the parent's listeo-style handle, so anything here overrides
 * the parent safely. Uses the same container/spacing conventions as Listeo
 * (`.container`) so new sections feel native to the theme.
 */

:root {
    --wehfigo-primary: #ff5722;
    --wehfigo-primary-dark: #e64a19;
    --wehfigo-dark: #14161a;
    --wehfigo-radius: 14px;
}

.wehfigo-section {
    padding: 50px 0;
}

.wehfigo-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wehfigo-section-head h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.wehfigo-see-all {
    font-weight: 600;
    color: var(--wehfigo-primary);
    white-space: nowrap;
}

/* ---------- Hero ---------- */
.wehfigo-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.wehfigo-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wehfigo-hero-media video,
.wehfigo-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wehfigo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .75) 100%);
}

.wehfigo-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.wehfigo-hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 13px;
    background: var(--wehfigo-primary);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.wehfigo-hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
}

.wehfigo-hero-sub {
    font-size: 17px;
    opacity: .92;
    margin-bottom: 28px;
}

.wehfigo-hero-search {
    background: #fff;
    border-radius: var(--wehfigo-radius);
    padding: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    max-width: 640px;
    margin: 0 auto 26px;
}

.wehfigo-hero-search-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--wehfigo-dark);
    font-size: 13px;
    font-weight: 600;
}

.wehfigo-hero-search-tabs label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.wehfigo-hero-search-row {
    display: flex;
    gap: 10px;
}

.wehfigo-hero-search-row input[type="text"] {
    flex: 1;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.wehfigo-hero-search-row button {
    background: var(--wehfigo-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.wehfigo-hero-search-row button:hover {
    background: var(--wehfigo-primary-dark);
}

.wehfigo-quick-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.wehfigo-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background .2s ease, transform .15s ease;
}

.wehfigo-quick-btn:hover {
    background: var(--wehfigo-primary);
    border-color: var(--wehfigo-primary);
    transform: translateY(-1px);
    color: #fff;
}

/* ---------- Cards (shared) ---------- */
.wehfigo-scroll-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.wehfigo-scroll-row .wehfigo-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.wehfigo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wehfigo-grid--large {
    grid-template-columns: repeat(3, 1fr);
}

.wehfigo-card {
    display: block;
    background: #fff;
    border-radius: var(--wehfigo-radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    color: var(--wehfigo-dark);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wehfigo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
    color: var(--wehfigo-dark);
}

.wehfigo-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eee;
    overflow: hidden;
}

.wehfigo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wehfigo-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.wehfigo-card-body {
    padding: 14px 16px 16px;
}

.wehfigo-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.wehfigo-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.wehfigo-card-price {
    font-weight: 700;
    color: var(--wehfigo-primary);
}

.wehfigo-empty {
    color: #6b7280;
    padding: 20px 0;
}

/* ---------- Browse by Vibe ---------- */
.wehfigo-vibe-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.wehfigo-vibe-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f6f7f9;
    border-radius: var(--wehfigo-radius);
    padding: 22px 10px;
    font-weight: 700;
    color: var(--wehfigo-dark);
    text-align: center;
    transition: background .2s ease, transform .15s ease;
}

.wehfigo-vibe-tile:hover {
    background: var(--wehfigo-primary);
    color: #fff;
    transform: translateY(-3px);
}

.wehfigo-vibe-emoji {
    font-size: 30px;
}

/* ---------- Explore by Parish ---------- */
.wehfigo-parish-map-placeholder {
    border: 2px dashed #e2e2e2;
    border-radius: var(--wehfigo-radius);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
    color: #9aa0a6;
}

.wehfigo-parish-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.wehfigo-parish-tile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--wehfigo-dark);
}

.wehfigo-parish-tile:hover {
    border-color: var(--wehfigo-primary);
    color: var(--wehfigo-primary);
}

.wehfigo-parish-count {
    font-size: 12px;
    font-weight: 500;
    color: #9aa0a6;
}

/* ---------- Happening tabs ---------- */
.wehfigo-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.wehfigo-tab {
    border: 1px solid #e2e2e2;
    background: #fff;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    color: var(--wehfigo-dark);
}

.wehfigo-tab.is-active {
    background: var(--wehfigo-primary);
    border-color: var(--wehfigo-primary);
    color: #fff;
}

.wehfigo-tab-panel {
    display: none;
}

.wehfigo-tab-panel.is-active {
    display: block;
}

/* ---------- Things To Do ---------- */
.wehfigo-things-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.wehfigo-things-tile {
    background: var(--wehfigo-dark);
    color: #fff;
    border-radius: var(--wehfigo-radius);
    padding: 26px 16px;
    text-align: center;
    font-weight: 700;
}

.wehfigo-things-tile:hover {
    background: var(--wehfigo-primary);
    color: #fff;
}

/* ---------- Major events ---------- */
.wehfigo-major-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wehfigo-major-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, #ff5722, #ffb300);
    color: #fff;
    border-radius: var(--wehfigo-radius);
    padding: 26px 20px;
    font-size: 18px;
    font-weight: 800;
}

.wehfigo-major-count {
    font-size: 12px;
    font-weight: 600;
    opacity: .9;
}

/* ---------- Submit CTA block ---------- */
.wehfigo-submit-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--wehfigo-dark);
    color: #fff;
    border-radius: var(--wehfigo-radius);
    padding: 40px;
}

.wehfigo-submit-cta-inner h2 {
    color: #fff;
    margin: 0 0 6px;
}

.wehfigo-submit-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wehfigo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 30px;
    font-weight: 700;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    white-space: nowrap;
}

.wehfigo-btn--primary {
    background: var(--wehfigo-primary);
    border-color: var(--wehfigo-primary);
}

.wehfigo-btn--whatsapp {
    background: #25d366;
    border-color: #25d366;
}

/* ---------- Sticky submit button ---------- */
.wehfigo-sticky-submit {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
}

.wehfigo-sticky-submit-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--wehfigo-primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 14px 20px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 87, 34, .4);
    cursor: pointer;
}

.wehfigo-sticky-submit-plus {
    font-size: 18px;
    line-height: 1;
}

.wehfigo-sticky-submit-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    padding: 8px;
    min-width: 190px;
}

.wehfigo-sticky-submit.is-open .wehfigo-sticky-submit-menu {
    display: block;
}

.wehfigo-sticky-submit-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--wehfigo-dark);
    font-weight: 600;
    font-size: 14px;
}

.wehfigo-sticky-submit-menu a:hover {
    background: #f6f7f9;
}

/* ---------- Mobile bottom nav ---------- */
.wehfigo-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.wehfigo-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    color: var(--wehfigo-dark);
    font-size: 11px;
    font-weight: 600;
}

.wehfigo-bottom-nav-icon {
    font-size: 19px;
}

.wehfigo-bottom-nav-item.is-cta .wehfigo-bottom-nav-icon {
    background: var(--wehfigo-primary);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .wehfigo-grid,
    .wehfigo-grid--large,
    .wehfigo-vibe-grid,
    .wehfigo-parish-grid,
    .wehfigo-things-grid,
    .wehfigo-major-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wehfigo-submit-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .wehfigo-hero-content h1 {
        font-size: 30px;
    }

    .wehfigo-grid,
    .wehfigo-grid--large,
    .wehfigo-vibe-grid,
    .wehfigo-parish-grid,
    .wehfigo-things-grid,
    .wehfigo-major-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .wehfigo-bottom-nav {
        display: flex;
    }

    /* keep the sticky submit button clear of the bottom nav bar */
    .wehfigo-sticky-submit {
        bottom: 76px;
    }

    body {
        padding-bottom: 58px;
    }
}
