/* Home composition. The remaining panels retain their established layout. */
.hero .home-canvas {
  display:grid;
  grid-template-columns:minmax(0,1.34fr) minmax(0,1fr);
  align-items:center;
  gap:4%;
  padding:calc(var(--layout-width) * .102) calc(var(--layout-width) * .029) calc(var(--layout-width) * .07) calc(var(--layout-width) * .057);
}
.home-copy { min-width:0; }
.home-title { font-family:Arial,sans-serif; line-height:1.06; font-weight:400; }
.home-title > span { display:block; font-size:6.95cqw; letter-spacing:.17cqw; white-space:nowrap; }
.home-title > strong { display:block; font-size:18.3cqw; font-weight:750; letter-spacing:.12cqw; line-height:1.02; }
.home-action { margin-top:3.2cqw; }
.home-action > p { font-size:2.05cqw; margin-bottom:1.15cqw; }
.home-links { display:flex; align-items:center; gap:2.3cqw; }
.demo-button { width:22cqw; min-height:4.6cqw; gap:.65em; font-size:2cqw; }
.demo-button svg { width:.85em; height:.85em; flex:none; }
.home-contact { font-size:2cqw; text-underline-offset:.17em; text-decoration-thickness:1px; white-space:nowrap; }
.home-products { list-style:none; padding:0; margin:0; display:grid; gap:1.8cqw; min-width:0; }
.home-products > li { min-width:0; }
/* Staggered collage from the owner's reference. The larger first card may
   use the canvas gutter, while every control stays inside the viewport. */
@media(min-width:821px) {
  .home-products { align-self:start; }
  .home-products > li:first-child {
    width:118%;
    max-width:calc(100% + (100vw - var(--layout-width)) / 2 + var(--layout-width) * .029 - 24px);
  }
  .home-products > li:nth-child(2) { width:82%; justify-self:end; margin-right:-2%; }
  .home-products > li:nth-child(3) { width:82%; margin-left:-13%; }
  .home-products > li:first-child h2 { font-size:clamp(16px,1.65cqw,21px); }
}
.home-product {
  display:grid;
  grid-template-columns:31% minmax(0,1fr);
  gap:14px;
  padding:10px;
  color:#35291e;
  background:#faf7ef;
  border:1px solid #604b39;
  border-radius:20px;
  box-shadow:0 3px 0 #5d442215;
  text-decoration:none;
  position:relative;
  height:100%;
  transition:transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .32s ease,border-color .32s ease;
}
/* Photos are CSS windows into the exact image supplied by the owner.
   Titles, descriptions, prices and interactions remain live HTML. */
.product-photo {
  display:block;
  width:100%;
  aspect-ratio:1;
  border-radius:9px;
  background-image:url('assets/home-menu-source.webp');
  background-repeat:no-repeat;
  background-color:#e5dbca;
}
.photo-promo { background-size:968.794% 544.681%; background-position:68.327% 23.764%; }
.photo-espresso { background-size:948.611% 533.333%; background-position:68.494% 52.564%; }
.photo-latte { background-size:948.611% 533.333%; background-position:68.576% 81.731%; }
.product-content { min-width:0; display:flex; flex-direction:column; padding:5px 7px 0 0; }
.product-content h2 { font-family:Georgia,serif; font-weight:700; font-size:clamp(14px,1.42cqw,18px); line-height:1.2; }
.product-content p { margin-top:7px; font:400 clamp(11px,1cqw,13px)/1.5 Arial,sans-serif; color:#71675b; }
.product-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:8px; }
.product-bottom > strong { font:700 clamp(12px,1.1cqw,14px)/1.2 Arial,sans-serif; }
.product-add { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:8px; background:#35291e; color:#faf7ef; transition:background .25s,transform .3s; }
.product-add svg { width:18px; height:18px; }
@media(hover:hover) and (pointer:fine) {
  .home-product:hover { transform:translateY(-5px) rotate(-.4deg); border-color:#3a1500; box-shadow:0 16px 30px -12px #3a150044; }
  .home-product:hover .product-add { background:#6a3819; transform:rotate(90deg); }
  .demo-button:hover svg { transform:translate(2px,-2px); }
}
.home-product:active { transform:scale(.985); }
.home-product:focus-visible { box-shadow:0 12px 28px -12px #3a150050; }

/* Mobile hero follows the supplied composition. Content stays in normal flow:
   small screens and enlarged text may grow beyond a viewport without clipping. */
@media(max-width:820px) {
  .hero .home-canvas {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:3cqw;
    width:100%;
    max-width:600px;
    min-height:var(--mobile-card-height);
    padding:calc(var(--mobile-unit) * 32) 10% calc(64px + env(safe-area-inset-bottom,0px));
    aspect-ratio:auto;
  }
  .home-copy { text-align:center; }
  .home-title > span { font-size:14.3cqw; letter-spacing:.1cqw; line-height:1.15; }
  .home-title > strong { font-size:35cqw; letter-spacing:.1cqw; line-height:.95; }
  .home-action { margin-top:1cqw; }
  .home-action > p { font-size:clamp(15px,4.7cqw,24px); margin-bottom:2.2cqw; }
  .home-links { justify-content:center; gap:6cqw; }
  .demo-button { width:44%; min-height:44px; padding:8px 12px; font-size:clamp(15px,4.7cqw,23px); gap:8px; }
  .home-contact { display:inline-flex; align-items:center; min-height:44px; font-size:clamp(14px,4.6cqw,23px); }
  .home-products { gap:7.5cqw; }
  .home-products > li { container-type:inline-size; }
  .home-products > li:first-child { width:100%; margin:0; }
  .home-products > li:nth-child(2) { width:72%; justify-self:end; margin-right:8%; }
  .home-products > li:nth-child(3) { width:60%; margin-left:3%; }
  .home-product { grid-template-columns:29% minmax(0,1fr); gap:3cqw; padding:2cqw; border-radius:clamp(9px,2.6cqw,16px); }
  .product-photo { height:auto; min-height:0; align-self:start; border-radius:2cqw; }
  .product-content { padding:2px 2px 0 0; }
  .product-content h2 { font-size:clamp(11px,3.3cqw,18px); }
  .product-content p { font-size:clamp(10px,2.4cqw,13px); margin-top:4px; line-height:1.35; }
  .product-bottom { padding-top:8px; gap:5px; }
  .product-bottom > strong { font-size:clamp(11px,2.9cqw,15px); }
  .product-add { width:clamp(20px,6.5cqw,30px); height:clamp(20px,6.5cqw,30px); border-radius:5px; }
  .product-add svg { width:65%; height:65%; }
}
