/*
Theme Name: BuBooza
Theme URI: https://bubooza.com
Author: BuBooza
Description: BuBooza custom theme — coexists with Elementor (header/footer/pages), adds Flavours, the quote form, and a mobile-first home page.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bubooza
*/

:root{
  --cream:#FBF6ED;--card:#FFFFFF;--white:#FFFFFF;
  --brand:#A31D2B;--brand-dk:#7E141F;--accent:#F2DAAC;
  --ink:#2B2620;--muted:#7A7A7A;--line:#EADACE;
  --r:18px;--wrap:1060px;
  --display:"Lilita One",Impact,fantasy;
  --body:"Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-dk)}
:focus-visible{outline:3px solid rgba(163,29,43,.4);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.1;margin:0 0 .5em;letter-spacing:.01em}
h1{font-size:clamp(2rem,7vw,3.4rem)}h2{font-size:clamp(1.6rem,5vw,2.3rem)}h3{font-size:1.2rem}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.section{padding:56px 0}
@media (min-width:800px){.section{padding:88px 0}}
.kicker{font-size:.85rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);margin-bottom:6px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 26px;
  border-radius:16px;font-weight:700;font-size:17px;text-decoration:none;border:2px solid transparent;cursor:pointer;font-family:var(--body)}
.btn-solid{background:var(--brand);color:#fff}.btn-solid:hover{background:var(--brand-dk)}
.btn-ghost{background:transparent;border-color:var(--brand-dk);color:var(--brand-dk)}.btn-ghost:hover{background:var(--brand-dk);color:#fff}
.btn-accent{background:var(--accent);color:var(--brand-dk)}.btn-accent:hover{filter:brightness(.95)}

/* hero + drip */
.hero{background:var(--brand-dk);color:var(--cream);overflow:hidden}
.hero .wrap{display:grid;gap:28px;align-items:center;padding-top:56px;padding-bottom:24px}
@media (min-width:800px){.hero .wrap{grid-template-columns:1.1fr .9fr;padding-top:80px;padding-bottom:48px}}
.hero h1{color:var(--cream);margin-bottom:.4em}
.hero p{font-size:1.1rem;max-width:32em;color:#F1E1E2}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.hero-img{border-radius:24px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.hero-img img{width:100%;aspect-ratio:4/3;object-fit:cover}
.drip{display:block;width:100%;height:60px;margin-top:-1px}
.drip.flip{transform:scaleY(-1);margin-top:0;margin-bottom:-1px}

/* value props */
.props{display:grid;gap:16px;grid-template-columns:1fr 1fr}
@media (min-width:800px){.props{grid-template-columns:repeat(4,1fr);gap:22px}}
.prop{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:22px 18px}
.prop h3{color:var(--brand-dk);font-size:1.05rem;margin-bottom:.3em}
.prop p{font-size:.92rem;color:var(--muted);margin:0}

/* flavours grid */
.flavours{display:grid;gap:20px;grid-template-columns:repeat(2,1fr);margin:28px 0}
@media (min-width:700px){.flavours{grid-template-columns:repeat(4,1fr);gap:28px}}
.flavour{text-align:center;text-decoration:none;color:var(--ink)}
.flavour img{border-radius:50%;aspect-ratio:1;object-fit:cover;width:100%;background:var(--white);border:1px solid var(--line);transition:transform .2s}
.flavour:hover img{transform:translateY(-4px) rotate(-2deg)}
.flavour h3{font-size:1.05rem;margin:12px 0 0}

/* photo grid (auto-filled from Media Library) */
.photo-grid{display:grid;gap:14px;grid-template-columns:repeat(2,1fr);margin-top:22px}
@media (min-width:800px){.photo-grid{grid-template-columns:repeat(4,1fr);gap:18px}}
.photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px;border:1px solid var(--line)}
.entry-home img{border-radius:20px}
.entry-home .wp-block-gallery{gap:16px}

/* story band */
.story{background:var(--accent);color:var(--ink)}
.story .wrap{padding-left:24px;padding-right:24px}
.story h2{color:var(--brand-dk)}
.story p{max-width:38em;font-size:1.1rem}

/* faq */
.faq details{background:var(--white);border:1px solid var(--line);border-radius:14px;margin-bottom:12px;padding:0 18px}
.faq summary{cursor:pointer;font-family:var(--display);font-size:1.05rem;padding:16px 0;list-style:none;position:relative;padding-right:34px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:2px;top:50%;transform:translateY(-50%);font-size:1.5rem;color:var(--brand);font-family:var(--body)}
.faq details[open] summary::after{content:"\2212"}
.faq details p{color:var(--muted);padding-bottom:16px;margin:0}

/* cta band */
.cta-band{background:var(--brand-dk);color:var(--cream);text-align:center}
.cta-band h2{color:var(--cream)}
.cta-band p{color:#F1E1E2;max-width:34em;margin:0 auto 22px}

/* content pages / single flavour */
.entry{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:28px 22px;margin:32px 0}
.dish-single{display:grid;gap:28px;align-items:start;margin:36px 0}
@media (min-width:800px){.dish-single{grid-template-columns:.9fr 1.1fr}}
.dish-single img{border-radius:24px}

/* Elementor footer — mobile readability */
@media (max-width:767px){
  .elementor-location-footer p{font-size:15px !important;line-height:1.6 !important}
  .elementor-location-footer input[type="email"],
  .elementor-location-footer input[type="text"]{
    background:#fff !important;color:#2B2620 !important;border:1.5px solid #fff !important;
    border-radius:10px !important;padding:12px 14px !important;font-size:16px !important}
  .elementor-location-footer input::placeholder{color:#6E6558 !important;opacity:1 !important}
}
.screen-reader-text{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;position:absolute!important}


/* Simple inline forms (contact + wholesale) */
.bbf{max-width:560px;margin:24px auto 0;text-align:left}
.bbf.wide{max-width:760px}
.bbf label{display:block !important;width:100% !important;float:none !important;font-weight:600;font-size:.9rem;margin:18px 0 6px;text-align:left}
.bbf label:first-of-type{margin-top:0}
.bbf .req::after{content:" *";color:#C0442E}
.bbf input,.bbf textarea{display:block !important;width:100% !important;float:none !important;min-height:52px;padding:12px 14px;font-size:16px;border:1.5px solid var(--line);border-radius:12px;background:#FFFDF9;color:var(--ink);font-family:var(--body)}
.bbf textarea{min-height:110px;resize:vertical}
.bbf input:focus,.bbf textarea:focus{outline:3px solid rgba(163,29,43,.25);border-color:var(--brand)}
.bbf input.is-bad,.bbf textarea.is-bad{border-color:#C0442E}
.bbf .row{display:grid;gap:12px}
@media (min-width:560px){.bbf .row{grid-template-columns:1fr 1fr}}
.bbf .btn{margin-top:18px}
.bbf-msg{display:none;margin-top:14px;padding:12px 14px;border-radius:10px;font-size:.95rem}
.bbf-msg.ok{display:block;background:#e7f2e1;color:#2f5122}
.bbf-msg.err{display:block;background:#FBEAE6;color:#C0442E}


/* ==========================================================
   "Taste the difference" — cone centred, four red cards around
========================================================== */
.diff-grid{
  display:grid;gap:16px;margin-top:28px;
  grid-template-columns:1fr;                 /* mobile: single column */
}
/* mobile order: card, card, cone, card, card */
.diff-card:nth-child(1){order:1}
.diff-card:nth-child(2){order:2}
.diff-center{order:3;display:flex;align-items:center;justify-content:center;padding:8px 0}
.diff-card:nth-child(4){order:4}
.diff-card:nth-child(5){order:5}
.diff-center img{
  width:auto;max-width:60%;height:auto;max-height:340px;object-fit:contain;
  border-radius:0;box-shadow:none;margin:0 auto;
}
.diff-card{
  background:var(--brand);color:#fff;border-radius:18px;padding:22px 20px;
  box-shadow:0 8px 22px rgba(126,20,31,.18);
}
.diff-card h3{color:#fff;font-family:var(--display);font-weight:400;font-size:1.15rem;margin-bottom:.3em}
.diff-card p{color:#F7E8D8;margin:0;font-size:.95rem}

/* Desktop: 3 columns, cone in the middle spanning both rows */
@media (min-width:860px){
  .diff-grid{
    grid-template-columns:1fr 1.2fr 1fr;
    grid-template-rows:auto auto;
    gap:22px;align-items:stretch;
  }
  .diff-card:nth-child(1){grid-column:1;grid-row:1;order:0;}
  .diff-card:nth-child(2){grid-column:1;grid-row:2;}
  .diff-center{grid-column:2;grid-row:1 / span 2;order:0;padding:0;}
  .diff-card:nth-child(4){grid-column:3;grid-row:1;}
  .diff-card:nth-child(5){grid-column:3;grid-row:2;}
  .diff-center img{max-width:100%;height:auto;}
  .diff-card{display:flex;flex-direction:column;justify-content:center;}
}