/*
Theme Name: LittleBarista
Theme URI: https://littlebarista.example
Author: LittleBarista by LittleFit
Description: Landing theme for LittleBarista — recipes, costing, shopping, and ordering platform for cafés and restaurants, powered by LittleFit.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: littlebarista
Tags: one-column, custom-logo, custom-menu, food-and-drink
*/

:root{
  --espresso:#38200e;
  --roast:#6b4226;
  --caramel:#b07b4f;
  --latte:#f3e7d8;
  --oat:#fbf6ee;
  --matcha:#6f9450;
  --matcha-dark:#4f7137;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Be Vietnam Pro',sans-serif;background:var(--oat);color:var(--espresso);line-height:1.65;font-size:16px}
h1,h2,h3,h4{font-family:'Fraunces',serif;line-height:1.15}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:1100px;margin:0 auto;padding:0 24px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--caramel)}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--caramel);border-radius:2px}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,246,238,.92);backdrop-filter:blur(8px);border-bottom:1px solid #e9dcc9}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px;gap:20px}
.brand{display:flex;align-items:center;gap:10px;font-family:'Fraunces',serif;font-weight:700;font-size:21px}
.brand img{width:42px;height:42px;border-radius:50%;box-shadow:0 2px 8px rgba(56,32,14,.18)}
.brand .accent{color:var(--caramel)}
.nav-links ul{display:flex;gap:26px;font-size:14.5px;font-weight:500;color:var(--roast);list-style:none}
.nav-links a:hover{color:var(--espresso)}
.btn{display:inline-block;background:var(--espresso);color:#fff;padding:11px 22px;border-radius:999px;font-weight:600;font-size:14.5px;transition:background .2s,transform .2s;border:none;cursor:pointer}
.btn:hover{background:var(--roast);transform:translateY(-1px);color:#fff}
.btn-ghost{background:transparent;color:var(--espresso);border:1.5px solid var(--espresso)}
.btn-ghost:hover{background:var(--latte);color:var(--espresso)}

/* hero */
.hero{padding:72px 0 64px;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center}
.hero h1{font-size:clamp(36px,5vw,56px);font-weight:700;margin:18px 0 20px}
.hero h1 .accent{color:var(--caramel)}
.hero p.lead{font-size:18px;color:var(--roast);max-width:52ch;margin-bottom:30px}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:34px}
.hero-tags{display:flex;gap:10px;flex-wrap:wrap}
.tag{background:var(--latte);color:var(--roast);border:1px solid #e6d5bd;padding:6px 14px;border-radius:999px;font-size:13px;font-weight:500}
.hero-figure{position:relative;display:flex;justify-content:center}
.hero-figure img{width:min(380px,90%);border-radius:32px;box-shadow:0 24px 60px rgba(56,32,14,.22);transform:rotate(2deg)}
.steam{position:absolute;top:-14px;left:50%;display:flex;gap:10px}
.steam i{display:block;width:3px;height:34px;border-radius:3px;background:linear-gradient(to top,transparent,var(--caramel));opacity:.55;animation:rise 3s ease-in-out infinite}
.steam i:nth-child(2){animation-delay:.7s;height:26px}
.steam i:nth-child(3){animation-delay:1.4s;height:30px}
@keyframes rise{0%,100%{transform:translateY(0) scaleY(1);opacity:.25}50%{transform:translateY(-8px) scaleY(1.1);opacity:.6}}
@media (prefers-reduced-motion:reduce){.steam i{animation:none}}

/* journey */
.journey{background:var(--espresso);color:var(--latte);padding:64px 0 72px}
.journey h2{font-size:clamp(26px,3.4vw,36px);margin:14px 0 10px;color:#fff}
.journey .sub{color:#d9c3a8;max-width:60ch;margin-bottom:44px}
.route{display:grid;grid-template-columns:repeat(5,1fr);position:relative}
.route::before{content:"";position:absolute;top:27px;left:9%;right:9%;border-top:2px dashed rgba(240,222,198,.35)}
.stop{position:relative;text-align:center;padding:0 10px}
.stop .dot{width:54px;height:54px;margin:0 auto 16px;border-radius:50%;background:var(--roast);border:2px solid var(--caramel);display:flex;align-items:center;justify-content:center;font-size:22px;position:relative;z-index:1}
.stop:last-child .dot{background:var(--matcha-dark);border-color:var(--matcha)}
.stop h3{font-size:16.5px;color:#fff;margin-bottom:6px}
.stop p{font-size:13.5px;color:#cdb69a}

/* generic blocks */
section.block{padding:80px 0}
.block h2{font-size:clamp(26px,3.4vw,36px);margin:14px 0 12px}
.block .sub{color:var(--roast);max-width:62ch;margin-bottom:40px}

.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:#fff;border:1px solid #eddfca;border-radius:18px;padding:26px 24px;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(56,32,14,.10)}
.card .ic{width:44px;height:44px;border-radius:12px;background:var(--latte);display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:16px}
.card h3{font-size:18px;margin-bottom:8px}
.card p{font-size:14.5px;color:var(--roast)}

.aud{background:var(--latte)}
.aud-grid{display:flex;gap:14px;flex-wrap:wrap}
.aud-chip{background:#fff;border:1px solid #e6d5bd;border-radius:14px;padding:16px 22px;font-weight:600;font-size:15px;display:flex;align-items:center;gap:10px}
.aud-chip span{font-size:20px}

.rec-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.rec{background:#fff;border:1px solid #eddfca;border-radius:16px;padding:22px 10px;text-align:center;font-weight:600;font-size:14px}
.rec span{display:block;font-size:30px;margin-bottom:10px}

.lf{background:linear-gradient(135deg,#f2f6ec,#e9f0e0);border-top:1px solid #dde8d0;border-bottom:1px solid #dde8d0}
.lf .eyebrow{color:var(--matcha-dark)}
.lf .eyebrow::before{background:var(--matcha-dark)}
.lf-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.lf ul{list-style:none;display:grid;gap:14px;margin-top:8px}
.lf li{display:flex;gap:12px;font-size:15.5px;align-items:flex-start}
.lf li b{color:var(--matcha-dark)}
.lf .check{flex:0 0 auto;width:22px;height:22px;border-radius:50%;background:var(--matcha-dark);color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center;margin-top:3px}
.lf-steps{display:grid;gap:12px}
.lf-step{background:#fff;border:1px solid #d8e4c8;border-radius:14px;padding:14px 18px;display:flex;align-items:center;gap:14px;font-weight:600;font-size:15px}
.lf-step small{display:block;font-weight:400;color:var(--roast);font-size:13px}
.lf-step .n{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--matcha-dark);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}

.cta{background:var(--espresso);color:#fff;border-radius:26px;padding:56px 48px;text-align:center;position:relative;overflow:hidden}
.cta::after{content:"☕";position:absolute;font-size:200px;opacity:.06;right:-30px;bottom:-50px;transform:rotate(-12deg)}
.cta h2{font-size:clamp(26px,3.4vw,38px);margin-bottom:14px;color:#fff}
.cta p{color:#d9c3a8;max-width:56ch;margin:0 auto 30px}
.cta .btn{background:var(--caramel)}
.cta .btn:hover{background:#c68f60}

.site-footer{padding:44px 0 56px;color:var(--roast);font-size:14px}
.foot{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
.foot .brand{font-size:18px}
.foot .brand img{width:34px;height:34px}

/* inner pages & blog */
.page-shell{padding:64px 0 80px}
.page-shell .entry-header h1{font-size:clamp(30px,4vw,44px);margin-bottom:26px}
.entry-content{max-width:760px}
.entry-content h2{margin:36px 0 12px;font-size:26px}
.entry-content h3{margin:28px 0 10px;font-size:20px}
.entry-content p{margin-bottom:16px;color:var(--roast)}
.entry-content ul,.entry-content ol{margin:0 0 16px 22px;color:var(--roast)}
.entry-content img{border-radius:16px;margin:20px 0}
.entry-content a{color:var(--matcha-dark);text-decoration:underline}
.post-list{display:grid;gap:20px;max-width:760px}
.post-card{background:#fff;border:1px solid #eddfca;border-radius:18px;padding:26px}
.post-card h2{font-size:22px;margin-bottom:8px}
.post-card .meta{font-size:13px;color:var(--caramel);margin-bottom:10px;font-weight:600}
.post-card p{color:var(--roast);font-size:15px}
.wp-block-image img{border-radius:16px}
.aligncenter{margin-left:auto;margin-right:auto}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .hero-figure{order:-1}
  .hero-figure img{width:min(280px,80%)}
  .route{grid-template-columns:1fr;gap:22px}
  .route::before{display:none}
  .stop{display:flex;text-align:left;gap:16px;align-items:flex-start}
  .stop .dot{margin:0;flex:0 0 auto;width:46px;height:46px;font-size:18px}
  .feat-grid{grid-template-columns:1fr 1fr}
  .rec-grid{grid-template-columns:repeat(3,1fr)}
  .lf-grid{grid-template-columns:1fr}
  .nav-links{display:none}
}
@media(max-width:560px){
  .feat-grid{grid-template-columns:1fr}
  .rec-grid{grid-template-columns:repeat(2,1fr)}
  .cta{padding:44px 26px}
}

/* WooCommerce integration */
.woocommerce-page main, .single-product main{display:block}
.woocommerce .wrap, body.woocommerce-page #main{max-width:1100px;margin:0 auto;padding:40px 24px 80px}
.woocommerce ul.products li.product{background:#fff;border:1px solid #eddfca;border-radius:18px;padding:0 0 18px;overflow:hidden}
.woocommerce ul.products li.product img{border-radius:0}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:'Fraunces',serif;font-size:18px;padding:14px 18px 4px}
.woocommerce ul.products li.product .price{padding:0 18px;color:var(--matcha-dark);font-weight:700}
.woocommerce ul.products li.product .button{margin:12px 18px 0;background:var(--espresso);color:#fff;border-radius:999px;padding:10px 20px}
.woocommerce ul.products li.product .button:hover{background:var(--roast)}
.woocommerce div.product .product_title{font-family:'Fraunces',serif}
.woocommerce div.product p.price{color:var(--matcha-dark);font-weight:700;font-size:22px}
.woocommerce div.product form.cart .button, .woocommerce .checkout-button, .woocommerce button.button.alt{background:var(--matcha-dark)!important;color:#fff!important;border-radius:999px!important}
.woocommerce div.product form.cart .button:hover, .woocommerce .checkout-button:hover, .woocommerce button.button.alt:hover{background:var(--matcha)!important}
.woocommerce-message,.woocommerce-info{border-top-color:var(--caramel)}
