/*
Theme Name: FiLLi Cafe
Theme URI: https://fillicafe.com
Author: FiLLi Cafe
Author URI: https://fillicafe.com
Description: Custom theme for FiLLi Cafe — matching the staging.fillicafe.com design system exactly.
Version: 1.0.0
License: Proprietary
Text Domain: filli-cafe
*/

/* ══ DESIGN SYSTEM ══ */
:root {
    --fi-orange: #fc5007;
    --fi-brown: #3f2016;
    --fi-cream: #f9f5f0;
    --fi-warm: #fdf6ef;
    --fi-dark: #1a0e08;
    --fi-gold: #d4a053;
    --fi-red: #D94429;
    --fi-saffron: #E8B83D;
    --fi-text: #555;
    --fi-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fi-text);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 82px;
}

a { color: var(--fi-orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: #e04500; }
img { max-width: 100%; height: auto; display: block; }

/* ══ UTILITY ══ */
.fi-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fi-section { position: relative; overflow: hidden; }
.fi-kicker {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--fi-orange);
    display: block; margin-bottom: 10px;
}
.fi-reveal {
    opacity: 0; transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.fi-reveal.vis { opacity: 1; transform: none; }
.fi-reveal-d1 { transition-delay: 0.1s; }
.fi-reveal-d2 { transition-delay: 0.2s; }
.fi-reveal-d3 { transition-delay: 0.3s; }

/* ══ BUTTONS ══ */
.fi-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 13px 30px; border-radius: 50px; border: none; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none; line-height: 1;
    font-family: inherit;
}
.fi-btn-fill { background: var(--fi-orange); color: #fff; }
.fi-btn-fill:hover { background: #e04500; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(252,80,7,0.25); color: #fff; }
.fi-btn-dark { background: var(--fi-brown); color: #fff; }
.fi-btn-dark:hover { background: #2e1810; transform: translateY(-2px); color: #fff; }
.fi-btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.fi-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.fi-btn-outline-brown { background: transparent; border: 1.5px solid var(--fi-brown); color: var(--fi-brown); }
.fi-btn-outline-brown:hover { background: var(--fi-brown); color: #fff; }


/* ══════════════════════════════════════════
   PAGE HERO — Dark gradient, left-aligned
   ══════════════════════════════════════════ */
.fi-page-hero {
    background: linear-gradient(135deg, #1a0e08 0%, #3f2016 60%, #5a3425 100%);
    padding: clamp(48px, 8vw, 80px) 0 clamp(48px, 6vw, 64px);
    position: relative; overflow: hidden;
}
.fi-page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(252,80,7,0.08) 0%, transparent 60%);
}
.fi-page-hero .fi-wrap { position: relative; z-index: 1; }
.fi-page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900; color: #fff; line-height: 1.08;
    margin: 0 0 12px; text-transform: uppercase;
}
.fi-page-hero h1 em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic; font-weight: 400;
    color: var(--fi-orange); text-transform: none;
}
.fi-page-hero p {
    font-size: clamp(0.82rem, 1.1vw, 0.92rem);
    color: rgba(255,255,255,0.5); line-height: 1.7;
    max-width: 520px; margin: 0;
}
.fi-page-hero .fi-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.6rem; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}
.fi-page-hero .fi-breadcrumb a { color: rgba(255,255,255,0.4); }
.fi-page-hero .fi-breadcrumb a:hover { color: var(--fi-orange); }
.fi-page-hero .fi-breadcrumb span { color: var(--fi-orange); }


/* ══════════════════════════════════════════
   BLOG INDEX — 3-column card grid
   ══════════════════════════════════════════ */
.fi-blog-section {
    background: var(--fi-warm);
    padding: clamp(48px, 7vw, 80px) 0;
}

/* Category pills */
.fi-cat-pills {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 40px;
}
.fi-cat-pill {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 980px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
}
.fi-cat-pill--active,
.fi-cat-pill:hover {
    background: var(--fi-orange); color: #fff;
    border-color: var(--fi-orange);
}
.fi-cat-pill--inactive {
    background: #fff; color: var(--fi-brown);
    border-color: rgba(63,32,22,0.12);
}

/* Card grid */
.fi-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.fi-blog-card {
    background: #fff;
    border-radius: var(--fi-radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none; display: block;
}
.fi-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(63,32,22,0.1);
    border-color: rgba(252,80,7,0.15);
}
.fi-blog-card-img {
    width: 100%; height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.fi-blog-card:hover .fi-blog-card-img {
    transform: scale(1.04);
}
.fi-blog-card-img-wrap {
    overflow: hidden;
    position: relative;
}
.fi-blog-card-cat {
    position: absolute; bottom: 12px; left: 12px;
    background: var(--fi-orange); color: #fff;
    font-size: 0.55rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px; border-radius: 980px;
}
.fi-blog-card-body {
    padding: 24px;
}
.fi-blog-card-date {
    font-size: 0.62rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--fi-gold);
    margin-bottom: 8px;
}
.fi-blog-card-title {
    font-size: 1.05rem; font-weight: 800; color: var(--fi-brown);
    line-height: 1.35; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fi-blog-card-excerpt {
    font-size: 0.78rem; color: var(--fi-text);
    line-height: 1.7; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fi-blog-card-link {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--fi-orange);
    display: inline-flex; align-items: center; gap: 6px;
}
.fi-blog-card:hover .fi-blog-card-link { gap: 10px; }

@media(max-width:991px) { .fi-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media(max-width:575px) { .fi-blog-grid { grid-template-columns: 1fr; gap: 20px; } }


/* ══════════════════════════════════════════
   SINGLE POST — Editorial layout
   ══════════════════════════════════════════ */
.fi-post-section {
    background: #fff;
    padding: clamp(40px, 6vw, 72px) 0;
}
.fi-post-inner {
    max-width: 760px; margin: 0 auto;
}
.fi-post-meta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.fi-post-meta-cat {
    background: var(--fi-orange); color: #fff;
    font-size: 0.55rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px; border-radius: 980px;
    text-decoration: none;
}
.fi-post-meta-date {
    font-size: 0.65rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--fi-gold);
}
.fi-post-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900; color: var(--fi-brown);
    line-height: 1.15; margin-bottom: 24px;
}
.fi-post-featured {
    width: 100%; border-radius: var(--fi-radius);
    margin-bottom: 32px;
}
.fi-post-content {
    font-size: 0.95rem; line-height: 1.85; color: #444;
}
.fi-post-content h2 {
    font-size: 1.4rem; font-weight: 800; color: var(--fi-brown);
    margin: 40px 0 16px;
}
.fi-post-content h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--fi-brown);
    margin: 32px 0 12px;
}
.fi-post-content p { margin-bottom: 20px; }
.fi-post-content img {
    border-radius: 12px; margin: 24px 0;
}
.fi-post-content blockquote {
    border-left: 3px solid var(--fi-orange);
    padding: 16px 24px;
    margin: 28px 0;
    background: var(--fi-warm);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--fi-brown);
}
.fi-post-content ul, .fi-post-content ol {
    padding-left: 20px; margin-bottom: 20px;
}
.fi-post-content li { margin-bottom: 8px; }
.fi-post-content a { color: var(--fi-orange); text-decoration: underline; }
.fi-post-content a:hover { color: #e04500; }

/* Post navigation */
.fi-post-nav {
    display: flex; justify-content: space-between; gap: 24px;
    margin-top: 56px; padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.fi-post-nav a {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--fi-brown);
    text-decoration: none;
}
.fi-post-nav a:hover { color: var(--fi-orange); }
.fi-post-nav-label {
    font-size: 0.55rem; color: var(--fi-text);
    letter-spacing: 1.5px; display: block; margin-bottom: 4px;
}

/* Related posts */
.fi-related {
    background: var(--fi-warm);
    padding: clamp(48px, 6vw, 72px) 0;
}
.fi-related h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900; color: var(--fi-brown);
    margin-bottom: 32px;
}
.fi-related h2 em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic; font-weight: 400;
    color: var(--fi-orange);
}


/* ══════════════════════════════════════════
   MEDIA ARCHIVE — Same grid, different hero
   ══════════════════════════════════════════ */
.fi-media-card-img { height: 180px; }
.fi-media-card-type {
    font-size: 0.55rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--fi-gold);
    margin-bottom: 6px;
}


/* ══════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════ */
.fi-pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 48px;
}
.fi-pagination a, .fi-pagination span {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 0.78rem; font-weight: 700;
    color: var(--fi-brown); text-decoration: none;
    border: 1.5px solid rgba(63,32,22,0.12);
    transition: all 0.2s;
}
.fi-pagination a:hover { border-color: var(--fi-orange); color: var(--fi-orange); }
.fi-pagination .current {
    background: var(--fi-orange); color: #fff;
    border-color: var(--fi-orange);
}
.fi-pagination .dots { border: none; }



/* ══════════════════════════════════════════
   HEADER — Matches staging exactly
   ══════════════════════════════════════════ */
.fi-wp-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    z-index: 7100;
    transition: all 0.35s ease;
}
.fi-wp-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.fi-wp-header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex; align-items: center;
    justify-content: space-between;
}
.fi-wp-header-left {
    display: flex; align-items: center; gap: 32px;
}
.fi-wp-header.scrolled .fi-wp-header-inner { padding: 12px 24px; }

.fi-wp-logo svg { width: 66px; transition: width 0.35s; }
.fi-wp-header.scrolled .fi-wp-logo svg { width: 52px; }

.fi-wp-nav { display: flex; align-items: center; gap: 32px; }
.fi-wp-nav a {
    font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fi-brown);
    text-decoration: none; position: relative; padding: 8px 0;
}
.fi-wp-nav a::after {
    content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
    height: 2.5px; background: var(--fi-orange); border-radius: 2px;
    transform: scaleX(0); transition: transform 0.25s ease;
}
.fi-wp-nav a:hover { color: var(--fi-orange); }
.fi-wp-nav a:hover::after { transform: scaleX(1); }

.fi-wp-nav-right { display: flex; align-items: center; gap: 12px; }
.fi-wp-nav-store {
    font-size: 13px; font-weight: 700; color: var(--fi-brown);
    display: inline-flex; align-items: center; gap: 7px;
    text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
}
.fi-wp-nav-store:hover { color: var(--fi-orange); }
.fi-wp-nav-store svg { width: 16px; height: 21px; }
.fi-wp-nav-order {
    background: var(--fi-orange); color: #fff;
    border-radius: 980px; padding: 10px 22px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; text-decoration: none;
    transition: background 0.2s;
}
.fi-wp-nav-order:hover { background: #e04500; color: #fff; }
.fi-wp-nav-select {
    border: 1.5px solid var(--fi-brown); color: var(--fi-brown);
    border-radius: 980px; padding: 10px 22px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; text-decoration: none;
    transition: all 0.2s;
}
.fi-wp-nav-select:hover { background: var(--fi-brown); color: #fff; }

/* Hamburger */
.fi-wp-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.fi-wp-hamburger span {
    display: block; width: 22px; height: 2.5px;
    background: var(--fi-brown); border-radius: 2px;
    transition: all 0.3s;
}
.fi-wp-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.fi-wp-hamburger.open span:nth-child(2) { opacity: 0; }
.fi-wp-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.fi-wp-mobile-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 8000;
    display: flex; flex-direction: column;
    padding: 24px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.fi-wp-mobile-nav.open { transform: none; }
.fi-wp-mobile-nav-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px;
}
.fi-wp-mobile-nav-top .fi-wp-logo svg { width: 66px; }
.fi-wp-mobile-close {
    background: none; border: none; cursor: pointer;
    font-size: 32px; color: var(--fi-brown);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.fi-wp-mobile-nav > a {
    font-size: 22px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--fi-brown);
    text-decoration: none;
    padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.fi-wp-mobile-nav > a:hover { color: var(--fi-orange); }
.fi-wp-mobile-ctas {
    margin-top: auto;
    display: flex; flex-direction: column; gap: 12px;
}
.fi-wp-mobile-ctas .fi-btn { justify-content: center; }

/* ══════════════════════════════════════════
   FOOTER — Matches staging exactly
   ══════════════════════════════════════════ */
.fi-wp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.fi-wp-footer {
    background-color: #3f2016;
    color: #fff;
    padding: 48px 0 0;
}

/* Top bar: logo + tagline */
.fi-wp-footer-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fi-wp-footer-logo {
    display: block;
    height: 80px;
    width: 80px;
    flex-shrink: 0;
    object-fit: contain;
}
.fi-wp-footer-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.01em;
}

/* Grid: 3 narrow cols + 1 wide */
.fi-wp-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 32px;
}
.fi-wp-footer-col h6 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}
.fi-wp-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fi-wp-footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    line-height: 2.2;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.fi-wp-footer-col ul li a:hover {
    color: #fff;
}

/* Loyalty logo */
.fi-wp-footer-loyalty {
    max-width: 280px;
    margin-top: 16px;
}
.fi-wp-footer-loyalty img {
    max-width: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    max-height: 44px;
}

/* Social icons */
.fi-wp-footer-social {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}
.fi-wp-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
    font-size: 16px;
    transition: all 0.2s;
    text-decoration: none;
}
.fi-wp-footer-social a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Download app button */
.fi-wp-footer-app-btn {
    display: inline-block;
    margin-top: 16px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 980px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.fi-wp-footer-app-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Amazon */
.fi-wp-footer-amazon {
    margin-top: 32px;
    padding-top: 24px;
}
.fi-wp-footer-amazon img {
    opacity: 0.25;
    max-height: 36px;
    transition: opacity 0.2s;
}
.fi-wp-footer-amazon img:hover { opacity: 0.45; }

/* Copyright bar */
.fi-wp-copyright {
    background-color: #1a0e08;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0;
}
.fi-wp-copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.fi-wp-copyright p {
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    margin: 0;
}
.fi-wp-copyright-links {
    font-size: 12px;
}
.fi-wp-copyright-links a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.fi-wp-copyright-links a:hover { color: rgba(255,255,255,0.6); }
.fi-wp-copyright-links span {
    color: rgba(255,255,255,0.2);
    padding: 0 6px;
}

/* Footer responsive */
@media(max-width:991px) {
    .fi-wp-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .fi-wp-footer-col-wide { grid-column: span 2; }
}
@media(max-width:575px) {
    .fi-wp-footer-top { flex-direction: column; align-items: flex-start; gap: 6px; }
    .fi-wp-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .fi-wp-copyright-inner { flex-direction: column; text-align: center; }
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media(max-width:991px) {
    .fi-wp-nav { display: none; }
    .fi-wp-nav-right { display: none; }
    .fi-wp-hamburger { display: flex; }
}
@media(max-width:767px) {
    body { padding-top: 72px; }
    .fi-page-hero { padding: clamp(32px, 6vw, 48px) 0 clamp(24px, 4vw, 36px); }
    .fi-post-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}

