/* Pecenapizza — chalkboard style */

:root{
  --bg:#211f1e;
  --bg-soft:#2a2723;
  --bg-elevated:#332f2a;
  --chalk:#f3efe2;
  --chalk-dim:#c7c1b2;
  --amber:#e2a23c;
  --amber-bright:#f3bb5c;
  --amber-deep:#b5732a;
  --olive:#9aa368;
  --line:rgba(243,239,226,.18);
  --line-strong:rgba(243,239,226,.34);
  --danger:#e2645c;
  --radius:16px;
  --serif:"Iowan Old Style","Palatino Linotype",Georgia,"Times New Roman",serif;
  --sans:"Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --mono:Consolas,"SFMono-Regular",Menlo,monospace;
  --maxw:1240px;
}

*,*::before,*::after{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
body{
  margin:0;
  background:var(--bg);
  color:var(--chalk);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;height:auto}
svg{max-width:100%}
a{color:var(--amber-bright);text-decoration:none}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;margin:0 0 .5em;color:var(--chalk);line-height:1.1}
p{margin:0 0 1em}
ul{margin:0;padding:0;list-style:none}
button{font-family:inherit}
input,textarea,select{font-family:inherit;font-size:1rem}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.container{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem}
::selection{background:var(--amber);color:#211f1e}
:focus-visible{outline:2px solid var(--amber-bright);outline-offset:3px;border-radius:4px}
input,select,textarea{accent-color:var(--amber)}

.icon{width:1.3em;height:1.3em;stroke:currentColor;fill:none;vertical-align:-.25em}

/* grain overlay */
.grain-overlay{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:300;opacity:.05;mix-blend-mode:overlay}

/* ================= HEADER ================= */
.site-header{
  position:sticky;top:0;z-index:200;
  background:rgba(33,31,30,.86);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--maxw);margin:0 auto;padding:.7rem 1.25rem;
  display:flex;align-items:center;gap:1rem;
}
.logo{display:flex;align-items:center;gap:.6rem;flex:0 0 auto}
.logo-mark{width:42px;height:42px;flex:0 0 42px}
.logo-word{width:168px;height:28px}
.main-nav{flex:1 1 auto;display:flex;justify-content:center}
.nav-list{display:flex;gap:1.7rem}
.nav-list a{
  color:var(--chalk-dim);font-size:.98rem;letter-spacing:.02em;position:relative;padding:.3rem 0;
}
.nav-list a::after{
  content:"";position:absolute;left:0;bottom:-2px;height:1px;width:100%;
  background:var(--amber-bright);transform:scaleX(0);transform-origin:left;transition:transform .3s ease;
}
.nav-list a:hover,.nav-list a:focus-visible{color:var(--chalk)}
.nav-list a:hover::after,.nav-list a:focus-visible::after{transform:scaleX(1)}
.cart-link{display:flex;align-items:center;gap:.4rem;color:var(--chalk);flex:0 0 auto;position:relative;padding:.4rem;min-height:44px;min-width:44px;justify-content:center}
.cart-count{
  background:var(--amber);color:#211f1e;font-size:.75rem;font-weight:700;
  border-radius:50%;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 4px;
}
.cart-count.bump{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}
.nav-toggle{
  display:none;background:none;border:1px solid var(--line-strong);border-radius:8px;
  width:44px;height:44px;align-items:center;justify-content:center;color:var(--chalk);cursor:pointer;
}
.nav-toggle .icon-close{display:none}
.nav-toggle[aria-expanded="true"] .icon-menu{display:none}
.nav-toggle[aria-expanded="true"] .icon-close{display:inline-block}

@media (max-width:860px){
  .nav-toggle{display:flex}
  .main-nav{
    position:fixed;inset:0 0 0 auto;width:min(78vw,320px);height:100vh;
    background:var(--bg-elevated);border-left:1px solid var(--line);
    transform:translateX(100%);visibility:hidden;transition:transform .35s ease;
    display:flex;align-items:flex-start;padding:5.5rem 1.5rem 2rem;z-index:250;
  }
  .main-nav.open{transform:translateX(0);visibility:visible}
  .nav-list{flex-direction:column;gap:1.4rem;width:100%}
  .nav-list a{font-size:1.15rem}
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.75rem 1.4rem;border-radius:999px;border:1px solid var(--amber);
  background:transparent;color:var(--chalk);font-weight:600;letter-spacing:.02em;
  cursor:pointer;position:relative;overflow:hidden;isolation:isolate;min-height:44px;
  transition:color .35s ease,border-color .3s ease;
}
.btn::before{
  content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--amber);
  z-index:-1;transition:left .35s ease;
}
.btn:hover::before,.btn:focus-visible::before{left:0}
.btn:hover,.btn:focus-visible{color:#211f1e}
.btn-primary{background:var(--amber);color:#211f1e;border-color:var(--amber)}
.btn-primary::before{background:var(--chalk)}
.btn-primary:hover,.btn-primary:focus-visible{color:#211f1e}
.btn-ghost{border-color:var(--line-strong);color:var(--chalk-dim)}
.btn-ghost::before{background:var(--line-strong)}
.btn-ghost:hover{color:var(--chalk)}
.btn-sm{padding:.5rem 1rem;font-size:.9rem;min-height:38px}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* ================= FOOTER ================= */
.site-footer{border-top:1px solid var(--line);background:var(--bg-soft);margin-top:4rem}
.footer-top{
  max-width:var(--maxw);margin:0 auto;padding:3rem 1.25rem 2rem;
  display:grid;grid-template-columns:1.3fr 2fr 1.3fr;gap:2.5rem;
}
.footer-brand p{color:var(--chalk-dim);max-width:260px}
.footer-brand .logo-mark{width:38px;height:38px}
.footer-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.footer-col h3{font-size:.95rem;text-transform:uppercase;letter-spacing:.08em;color:var(--amber-bright);margin-bottom:.8rem}
.footer-col li{margin-bottom:.5rem}
.footer-col a{color:var(--chalk-dim)}
.footer-col a:hover{color:var(--chalk)}
.newsletter-form h3{font-size:1.05rem;margin-bottom:.3rem}
.newsletter-form p{color:var(--chalk-dim);font-size:.92rem}
.field-row{display:flex;gap:.5rem;flex-wrap:wrap}
.field-row input{flex:1 1 160px}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.footer-bottom{border-top:1px solid var(--line);padding:1rem 1.25rem;text-align:center;color:var(--chalk-dim);font-size:.85rem}
@media (max-width:860px){
  .footer-top{grid-template-columns:1fr}
  .footer-nav{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:560px){
  .footer-nav{grid-template-columns:1fr 1fr}
}

/* ================= FORMS ================= */
.field{margin-bottom:1rem;display:flex;flex-direction:column;gap:.35rem}
.field label{font-size:.9rem;color:var(--chalk-dim)}
.field input,.field textarea,.field select{
  background:var(--bg-elevated);border:1px solid var(--line-strong);border-radius:10px;
  padding:.7rem .9rem;color:var(--chalk);min-height:44px;
}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--amber)}
.form-msg{min-height:1.4em;font-size:.9rem}
.form-msg[data-state="ok"]{color:var(--olive)}
.form-msg[data-state="error"]{color:var(--danger)}
.form-msg[data-state="sending"]{color:var(--chalk-dim)}

/* cookie banner */
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:400;max-width:560px;
  background:var(--bg-elevated);border:1px solid var(--line-strong);border-radius:var(--radius);
  padding:1.2rem 1.4rem;box-shadow:0 20px 50px rgba(0,0,0,.4);display:none;gap:1rem;flex-wrap:wrap;
}
.cookie-banner.show{display:flex}
.cookie-banner p{margin:0 0 .8rem;font-size:.92rem;color:var(--chalk-dim)}
.cookie-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.cookie-actions .btn-ghost{color:var(--chalk)}

/* ================= REVEAL ================= */
.reveal{opacity:1;transform:none}
.reveal.js-hidden{opacity:0;transform:translateY(24px);clip-path:inset(0 0 15% 0)}
.reveal.in-view{opacity:1;transform:none;clip-path:inset(0 0 0% 0);transition:opacity .7s ease,transform .7s ease,clip-path .7s ease}
.reveal.stagger-1.js-hidden{transition-delay:.05s}
.reveal.stagger-2.js-hidden{transition-delay:.1s}
.reveal.stagger-3.js-hidden{transition-delay:.15s}
.reveal.stagger-4.js-hidden{transition-delay:.2s}

/* ================= HERO / HOME ================= */
.home-split{
  display:grid;grid-template-columns:.95fr 1.3fr;align-items:start;
}
.home-left{
  position:sticky;top:0;height:100vh;display:flex;flex-direction:column;justify-content:center;
  padding:2rem 1.25rem;overflow:hidden;
}
.home-left-inner{max-width:420px}
.eyebrow{
  color:var(--amber-bright);text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;font-weight:700;
}
.display-h1{
  font-size:clamp(2.6rem,7vw,4.6rem);line-height:1.02;margin:.5rem 0 1rem;
}
.home-left p.lead{color:var(--chalk-dim);font-size:1.08rem;max-width:380px}
.home-left .cta-row{display:flex;gap:.8rem;margin-top:1.4rem;flex-wrap:wrap}
.hero-layers{position:relative;height:260px;margin-top:1.5rem}
.hero-layers svg{position:absolute}
.layer-plate{left:0;top:10px;width:220px;height:220px;animation:slide-plate .9s cubic-bezier(.2,.8,.2,1) both}
.layer-steam{left:40px;top:-10px;width:160px;height:160px;animation:slide-steam 1s .15s cubic-bezier(.2,.8,.2,1) both}
.layer-badge{left:150px;top:150px;width:110px;height:110px;animation:slide-badge 1s .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes slide-plate{from{transform:translate(-40px,20px) rotate(-6deg);opacity:0}to{transform:none;opacity:1}}
@keyframes slide-steam{from{transform:translate(40px,-30px) rotate(8deg);opacity:0}to{transform:none;opacity:1}}
@keyframes slide-badge{from{transform:translate(30px,40px) scale(.7);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){
  .layer-plate,.layer-steam,.layer-badge{animation:none}
}
.home-right{display:flex;flex-direction:column;gap:5rem;padding:2rem 1.25rem 4rem}
.home-right .panel{max-width:620px}
.panel-photo{
  position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;
}
.panel-photo img{width:100%;height:100%;object-fit:cover;filter:saturate(.9) contrast(1.05)}
.panel-photo::after{
  content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(226,162,60,.25),rgba(33,31,30,.55));
  mix-blend-mode:multiply;
}
.panel-shape{position:absolute;pointer-events:none}

@media (max-width:980px){
  .home-split{grid-template-columns:minmax(0,1fr)}
  .home-left{position:static;height:auto;padding:3rem 1.25rem 1rem;min-width:0}
  .home-right{padding:1rem 1.25rem 3rem;gap:3.5rem;min-width:0}
}

/* section generic */
.section{padding:4rem 0}
.section-head{max-width:620px;margin-bottom:2rem}
.section-head .eyebrow{display:block;margin-bottom:.4rem}
.divider{width:100%;height:28px;margin:2.5rem 0;color:var(--line-strong)}
.divider svg{width:100%;height:100%}

/* category grid on home */
.cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.cat-card{
  border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.2rem;
  background:var(--bg-soft);transition:transform .3s ease,border-color .3s ease;
}
.cat-card:hover{transform:translateY(-6px);border-color:var(--amber)}
.cat-card svg{width:40px;height:40px;color:var(--amber-bright);margin-bottom:.8rem}
.cat-card h3{font-size:1.05rem;margin-bottom:.3rem}
.cat-card p{color:var(--chalk-dim);font-size:.9rem;margin:0}
@media (max-width:700px){.cat-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:460px){.cat-grid{grid-template-columns:minmax(0,1fr)}}

/* ================= PRODUCT CARDS / CATALOG ================= */
.filter-bar{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:2rem}
.filter-btn{
  border:1px solid var(--line-strong);background:transparent;color:var(--chalk-dim);
  padding:.5rem 1rem;border-radius:999px;cursor:pointer;font-size:.88rem;min-height:40px;
}
.filter-btn[aria-pressed="true"]{background:var(--amber);color:#211f1e;border-color:var(--amber)}

.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.product-card{
  background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;position:relative;
  transition:transform .3s ease,border-color .3s ease;
}
.product-card:hover{transform:translateY(-6px);border-color:var(--amber)}
.product-card:has(.product-badge){border-color:var(--amber-deep)}
.field:has(input:invalid:not(:placeholder-shown)) label,
.field:has(textarea:invalid:not(:placeholder-shown)) label{color:var(--danger)}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden;position:relative}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.product-card:hover .thumb img{transform:scale(1.08)}
.product-badge{
  position:absolute;top:.7rem;left:.7rem;background:var(--amber);color:#211f1e;
  font-size:.75rem;font-weight:700;padding:.3rem .6rem;border-radius:999px;
}
.product-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.product-body h3{font-size:1.1rem;margin:0}
.product-body h3 a{color:var(--chalk)}
.product-cat{color:var(--amber-bright);font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}
.product-desc{color:var(--chalk-dim);font-size:.9rem;flex:1}
.price-row{display:flex;align-items:baseline;gap:.5rem;margin-top:.2rem}
.price{font-family:var(--serif);font-size:1.3rem;color:var(--amber-bright)}
.price-old{color:var(--chalk-dim);text-decoration:line-through;font-size:.95rem}
.product-actions{display:flex;gap:.6rem;margin-top:.4rem}
@media (max-width:900px){.product-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){
  .product-grid{grid-template-columns:1fr;grid-auto-flow:column;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem;gap:1rem}
  .product-grid .product-card{min-width:78vw;scroll-snap-align:start}
}

/* ================= PIZZA BUILDER ================= */
.builder{
  display:grid;grid-template-columns:1fr 1.1fr;gap:2.5rem;align-items:start;
  background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);
  padding:2rem;
}
.builder-visual{position:relative;display:flex;flex-direction:column;align-items:center;gap:1rem;min-width:0}
.builder-plate{width:min(100%,320px);aspect-ratio:1/1}
.builder-total{text-align:center}
.builder-total .amount{font-family:var(--serif);font-size:2.4rem;color:var(--amber-bright)}
.builder-group{margin-bottom:1.2rem}
.builder-group legend,.builder-group .group-label{font-weight:700;margin-bottom:.5rem;display:block;color:var(--chalk)}
.builder-options{display:flex;gap:.6rem;flex-wrap:wrap}
.chip{
  position:relative;display:inline-flex;align-items:center;
}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip span{
  display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .9rem;border-radius:999px;
  border:1px solid var(--line-strong);color:var(--chalk-dim);cursor:pointer;font-size:.88rem;min-height:40px;
  transition:all .2s ease;
}
.chip input:checked + span{background:var(--amber);border-color:var(--amber);color:#211f1e;font-weight:600}
.chip input:focus-visible + span{outline:2px solid var(--amber-bright);outline-offset:2px}
.topping-layer{opacity:0;transition:opacity .25s ease}
.topping-layer.active{opacity:1}
@media (max-width:860px){.builder{grid-template-columns:minmax(0,1fr)}}

/* ================= PRODUCT DETAIL ================= */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.product-detail .thumb{border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3}
.product-detail .thumb img{width:100%;height:100%;object-fit:cover}
.ingredient-list{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.ingredient-list li{
  border:1px solid var(--line-strong);border-radius:999px;padding:.4rem .8rem;font-size:.85rem;color:var(--chalk-dim);
}
.qty-row{display:flex;align-items:center;gap:1rem;margin:1.2rem 0}
.qty-control{display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:999px}
.qty-control button{background:none;border:none;color:var(--chalk);width:40px;height:40px;cursor:pointer;font-size:1.1rem}
.qty-control input{width:40px;text-align:center;background:none;border:none;color:var(--chalk)}
.related{margin-top:4rem}
@media (max-width:800px){.product-detail{grid-template-columns:1fr}}

/* ================= CART / CHECKOUT ================= */
.cart-table{width:100%;border-collapse:collapse;margin-bottom:2rem}
.cart-table th{text-align:left;color:var(--chalk-dim);font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;padding:.6rem;border-bottom:1px solid var(--line-strong)}
.cart-table td{padding:.8rem .6rem;border-bottom:1px solid var(--line)}
.cart-item-info{display:flex;align-items:center;gap:.8rem}
.cart-item-info img{width:60px;height:60px;object-fit:cover;border-radius:10px}
.cart-remove{background:none;border:none;color:var(--chalk-dim);cursor:pointer;text-decoration:underline;min-height:44px}
.cart-summary{display:flex;justify-content:flex-end}
.cart-summary dl{min-width:260px}
.cart-summary .row{display:flex;justify-content:space-between;padding:.4rem 0;border-bottom:1px solid var(--line)}
.cart-summary .row.total{font-size:1.2rem;color:var(--amber-bright);font-weight:700;border-bottom:none}
.checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;margin-top:3rem}
.empty-cart{text-align:center;padding:3rem 0;color:var(--chalk-dim)}
@media (max-width:800px){.checkout-grid{grid-template-columns:1fr}}

/* ================= LEGAL / TEXT PAGES ================= */
.legal-page .container{max-width:760px}
.legal-page h2{margin-top:2rem;font-size:1.3rem}
.legal-page li{margin-bottom:.4rem;list-style:disc;margin-left:1.2rem}
.legal-page ul{margin-bottom:1rem}
.page-hero{padding:3.5rem 0 1rem}
.page-hero h1{font-size:clamp(2.2rem,5vw,3.2rem)}
.page-hero p{color:var(--chalk-dim);max-width:560px}

/* FAQ */
.faq-item{border-bottom:1px solid var(--line);padding:1.1rem 0}
.faq-item summary{cursor:pointer;font-weight:600;font-size:1.05rem;color:var(--chalk);list-style:none;display:flex;justify-content:space-between;gap:1rem;min-height:44px;align-items:center}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.4rem;color:var(--amber-bright)}
.faq-item[open] summary::after{content:"–"}
.faq-item p{color:var(--chalk-dim);margin-top:.6rem}

/* contact / about */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
@media (max-width:800px){.two-col{grid-template-columns:1fr}}
.badge-seal{width:140px;height:140px;color:var(--amber-bright)}
.process-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:1rem}
.process-step{position:relative;padding-left:0}
.process-step .num{font-family:var(--serif);font-size:2rem;color:var(--amber-bright);display:block;margin-bottom:.3rem}
@media (max-width:700px){.process-steps{grid-template-columns:1fr}}

/* 404 */
.notfound{text-align:center;padding:6rem 1.25rem}
.notfound svg{width:200px;height:200px;margin:0 auto 1.5rem}

/* continuous subtle element: floating steam line in header area of long pages */
.ambient-steam{position:fixed;right:1.2rem;bottom:1.2rem;width:54px;height:80px;opacity:.5;pointer-events:none;z-index:10;color:var(--chalk-dim)}
.ambient-steam .s{animation:steam-float 6s ease-in-out infinite}
.ambient-steam .s2{animation-delay:1.5s}
@keyframes steam-float{0%,100%{transform:translateY(0) scaleY(1)}50%{transform:translateY(-10px) scaleY(1.08)}}
@media (prefers-reduced-motion:reduce){.ambient-steam .s{animation:none}}
@media (max-width:700px){.ambient-steam{display:none}}
