/* =====================================================
   BACIO CREMERIA — page styles (loaded only on /businesses/bacio-cremeria)
   Everything is scoped to .bacio-page so no other page is affected.

   Tokens follow the Bacio brand guideline (Lama Kaddura, 2020):
   palette "Wildly yours", geometric sans, melt / sprinkle / dot /
   diamond motifs. Luxury here = whitespace, proportion and restraint.
===================================================== */

/* Champagne & Limousines is the guideline face. It is used when installed
   or self-hosted (add the files to public/fonts/ and a src: url() line);
   Josefin Sans, the closest open geometric sans, stands in until then. */
@font-face {
    font-family: 'Bacio Display';
    src: local('Champagne & Limousines'), local('ChampagneLimousines');
    font-display: swap;
}

.bacio-page {
    /* colour — sampled from the official logo where it carries the colour */
    --b-blue:     #0075A7;   /* logo "b", "i" */
    --b-deep:     #003851;   /* logo outline blue — text on light */
    --b-magenta:  #C2479A;   /* palette 2 */
    --b-yellow:   #FDC937;   /* logo "c" */
    --b-peach:    #FAC2A3;   /* logo "a" */
    --b-mint:     #C3E4DA;   /* palette 5 */
    --b-grey:     #D1D2D4;   /* palette 6 */
    --b-paper:    #FFFFFF;
    --b-cloud:    #F5F5F3;   /* the guideline's soft grey ground */
    --b-ink-soft: #4A6472;   /* body text on white (AA 5.9:1) */

    /* type */
    --b-font: 'Bacio Display', 'Josefin Sans', 'Century Gothic', 'Futura', sans-serif;

    /* space */
    --b-gutter: clamp(20px, 5vw, 72px);
    --b-space:  clamp(88px, 11vw, 168px);
    --b-max:    1240px;

    /* motion */
    --b-ease: cubic-bezier(.22, 1, .36, 1);
    --b-slow: 1100ms;
    --b-med:  700ms;
    --b-fast: 380ms;

    background: var(--b-paper);
    color: var(--b-deep);
    font-family: var(--b-font);
    overflow: clip;
}

:where(.bacio-page) :where(h1, h2, h3, p) { color: inherit; margin: 0; }
.bacio-page [id] { scroll-margin-top: 110px; }
.bacio-page a:focus-visible,
.bacio-page button:focus-visible { outline: 2px solid var(--b-blue); outline-offset: 4px; }

.bacio-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--b-max);
    margin: 0 auto;
    padding-inline: var(--b-gutter);
}

.bacio-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- type roles ---------- */

.bacio-page .bacio-label,
.bacio-page .bacio-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--b-blue);
}
.bacio-label { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.bacio-label::before {
    content: "";
    width: 9px; height: 9px;
    background: var(--b-magenta);
    transform: rotate(45deg);          /* the logo diamond */
    flex: none;
}
.bacio-page .bacio-label--light { color: #fff; }
.bacio-label--light::before { background: var(--b-yellow); }

.bacio-display {
    font-weight: 300;
    font-size: clamp(44px, 6.2vw, 92px);
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--b-deep);
}
.bacio-display span { display: block; color: var(--b-blue); }

.bacio-h2 {
    font-weight: 300;
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.1;
    letter-spacing: -.01em;
    max-width: 16ch;
}

:where(.bacio-page) p { font-size: 17px; line-height: 1.75; color: var(--b-ink-soft); }   /* zero specificity: roles below win */

/* ---------- actions ---------- */

.bacio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 40px; }
.bacio-actions--center { justify-content: center; }

.bacio-btn {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 34px;
    background: var(--b-deep);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--b-fast) var(--b-ease);
}
.bacio-btn:hover { background: var(--b-blue); color: #fff; }

.bacio-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--b-deep);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.bacio-link i { font-size: 12px; transition: transform var(--b-fast) var(--b-ease); }
.bacio-link:hover { color: var(--b-blue); }
.bacio-link:hover i { transform: translateX(4px); }

/* ---------- guideline motifs ---------- */

/* dot fields (wax paper / sleeves) */
.bacio-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(currentColor 1.6px, transparent 1.9px);
    background-size: 16px 16px;
}

/* sprinkles (cups, aprons, wax paper) */
.bacio-sprinkles {
    position: absolute;
    pointer-events: none;
    background-size: 120px 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg stroke='%23C2479A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 14l9 5'/%3E%3Cpath d='M44 10l-3 10'/%3E%3Cpath d='M78 18l10-2'/%3E%3Cpath d='M104 8l4 9'/%3E%3Cpath d='M22 44l-8 6'/%3E%3Cpath d='M56 40l9 4'/%3E%3Cpath d='M92 46l-2 10'/%3E%3Cpath d='M10 80l10 1'/%3E%3Cpath d='M40 74l5 9'/%3E%3Cpath d='M72 80l-9 5'/%3E%3Cpath d='M104 78l8 6'/%3E%3Cpath d='M26 106l-4 9'/%3E%3Cpath d='M60 108l10-3'/%3E%3Cpath d='M92 104l3 10'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

/* diamond marker */
.bacio-diamond {
    display: inline-block;
    width: 12px; height: 12px;
    transform: rotate(45deg);
    flex: none;
}
.bacio-diamond--blue    { background: var(--b-blue); }
.bacio-diamond--magenta { background: var(--b-magenta); }
.bacio-diamond--yellow  { background: var(--b-yellow); }
.bacio-diamond--peach   { background: var(--b-peach); }
.bacio-diamond--mint    { background: #8FCBB8; }   /* mint, deepened to stay visible on white */


/* =====================================================
   HERO
===================================================== */
.bacio-hero {
    position: relative;
    padding: 150px 0 clamp(80px, 9vw, 130px);
    background: var(--b-paper);
}

.bacio-hero-melt {
    position: absolute;
    top: 70px;
    right: -6vw;
    width: min(62vw, 860px);
    height: auto;
    fill: var(--b-blue);
    pointer-events: none;
}
.bacio-dots--hero { color: var(--b-yellow); width: 240px; height: 200px; left: 44%; bottom: -30px; opacity: .9;
    -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }

.bacio-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.bacio-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 44px;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #647A86; }
.bacio-crumbs a { color: #647A86; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.bacio-crumbs a:hover { color: var(--b-blue); }
.bacio-crumbs [aria-current] { color: var(--b-deep); }

.bacio-logo { display: block; width: 210px; height: auto; margin-bottom: 40px; }

.bacio-page .bacio-kicker { margin-bottom: 26px; letter-spacing: .26em; max-width: 34ch; line-height: 1.7; }

.bacio-lead { max-width: 46ch; margin-top: 30px; }

/* photo stage: one tall frame, one smaller overlapping it */
.bacio-hero-stage {
    position: relative;
    min-height: 560px;
}
.bacio-frame { position: absolute; margin: 0; background: #fff; padding: 10px; box-shadow: 0 30px 70px rgba(0, 56, 81, .18); }
.bacio-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bacio-frame--main { top: 0; right: 8%; width: 340px; aspect-ratio: 432 / 600; }
.bacio-frame--main img { object-position: 50% 60%; }
.bacio-frame--side { left: 2%; bottom: 0; width: 230px; aspect-ratio: 4 / 5; }
.bacio-frame--side img { object-position: 50% 45%; }

.bacio-sprinkles--hero { width: 200px; height: 200px; left: -14%; top: 4%; }

.bacio-diamonds {
    position: absolute; top: 18px; left: 16%;
    display: grid; grid-template-columns: repeat(2, 14px); gap: 5px;
    transform: rotate(45deg);
}
.bacio-diamonds i { width: 14px; height: 14px; }
.bacio-diamonds i:nth-child(1) { background: var(--b-peach); }
.bacio-diamonds i:nth-child(2) { background: var(--b-yellow); }
.bacio-diamonds i:nth-child(3) { background: var(--b-magenta); }
.bacio-diamonds i:nth-child(4) { background: var(--b-blue); }

.bacio-vertical {
    position: absolute; right: -6px; top: 8%;
    writing-mode: vertical-rl;
    font-size: 12px; font-weight: 600; letter-spacing: .6em;
    color: #fff;
}


/* =====================================================
   STORY + OFFERINGS
===================================================== */
.bacio-story {
    position: relative;
    padding: var(--b-space) 0 calc(var(--b-space) * .8);
    background: var(--b-cloud);
}
.bacio-dots--story { color: #9FD3C2; width: 340px; height: 340px; left: -150px; bottom: -40px;
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent); }

.bacio-story-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    column-gap: clamp(32px, 6vw, 96px);
}
.bacio-story-grid .bacio-label { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 14px; }
.bacio-statement {
    grid-column: 2;
    font-weight: 300;
    font-size: clamp(30px, 3.4vw, 50px);
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--b-deep);
    max-width: 22ch;
}
.bacio-story-body {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 44px;
}

.bacio-offer {
    list-style: none;
    margin: clamp(64px, 8vw, 110px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--b-grey);
}
.bacio-offer li { padding: 30px 28px 0 0; }
.bacio-offer li + li { padding-left: 28px; border-left: 1px solid var(--b-grey); }
.bacio-offer h3 { margin-top: 22px; font-size: 20px; font-weight: 400; color: var(--b-deep); }
.bacio-offer p  { margin-top: 10px; font-size: 15px; line-height: 1.6; }


/* =====================================================
   MENU — index + stage
===================================================== */
.bacio-menu { position: relative; padding: var(--b-space) 0; background: var(--b-paper); }

.bacio-menu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 7vw, 120px);
    align-items: center;
}

.bacio-index { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--b-grey); }
.bacio-index li { border-bottom: 1px solid var(--b-grey); }
.bacio-index-btn {
    width: 100%;
    display: grid;
    grid-template-columns: 44px 24px 1fr;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.bacio-index-num { font-size: 12px; letter-spacing: .2em; color: #647A86; }
.bacio-index-name {
    font-size: clamp(22px, 2.3vw, 34px);
    font-weight: 300;
    color: #647A86;
    transition: color var(--b-fast) var(--b-ease), transform var(--b-med) var(--b-ease);
}
.bacio-index .bacio-diamond { transform: rotate(45deg) scale(.55); transition: transform var(--b-fast) var(--b-ease); }
.bacio-index li.is-on .bacio-index-name { color: var(--b-deep); transform: translateX(8px); }
.bacio-index li.is-on .bacio-diamond    { transform: rotate(45deg) scale(1); }
.bacio-index-thumb { display: none; }

.bacio-menu-stage { position: relative; height: 560px; }
.bacio-menu-melt {
    position: absolute; inset: 4% -10% 0 0;
    width: 110%; height: 100%;
    fill: var(--b-peach);
    pointer-events: none;
}
.bacio-stage-photo {
    position: absolute;
    left: 50%; top: 50%;
    width: 340px;
    aspect-ratio: 4 / 5;
    margin: 0;
    padding: 10px 10px 0;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 56, 81, .18);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -48%);
    transition: opacity var(--b-med) var(--b-ease), transform var(--b-med) var(--b-ease), visibility 0s linear var(--b-med);
}
.bacio-stage-photo.is-on {
    opacity: 1; visibility: visible; transform: translate(-50%, -50%);
    transition: opacity var(--b-med) var(--b-ease), transform var(--b-med) var(--b-ease), visibility 0s;
}
.bacio-stage-photo .bacio-image-btn { height: calc(100% - 46px); }
.bacio-stage-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bacio-stage-photo figcaption {
    height: 46px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--b-deep);
}


/* =====================================================
   DAIRY — bold blue band
===================================================== */
.bacio-dairy {
    position: relative;
    padding: calc(var(--b-space) * .9) 0 var(--b-space);
    background: var(--b-blue);
    color: #fff;
}
.bacio-dairy-edge { position: absolute; left: 0; top: -119px; width: 100%; height: 120px; fill: var(--b-blue); }
.bacio-sprinkles--dairy { width: 300px; height: 300px; right: 2%; top: 10px; opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 14l9 5'/%3E%3Cpath d='M44 10l-3 10'/%3E%3Cpath d='M78 18l10-2'/%3E%3Cpath d='M104 8l4 9'/%3E%3Cpath d='M22 44l-8 6'/%3E%3Cpath d='M56 40l9 4'/%3E%3Cpath d='M92 46l-2 10'/%3E%3Cpath d='M10 80l10 1'/%3E%3Cpath d='M40 74l5 9'/%3E%3Cpath d='M72 80l-9 5'/%3E%3Cpath d='M104 78l8 6'/%3E%3Cpath d='M26 106l-4 9'/%3E%3Cpath d='M60 108l10-3'/%3E%3Cpath d='M92 104l3 10'/%3E%3C/g%3E%3C/svg%3E"); }
.bacio-dairy-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 7vw, 120px); align-items: end; }
.bacio-dairy-inner .bacio-label { grid-column: 1 / -1; }
.bacio-dairy .bacio-h2 { color: #fff; max-width: 14ch; font-size: clamp(36px, 4.4vw, 64px); }
.bacio-dairy-text {
    max-width: 52ch;
    margin-top: 0;
    font-size: clamp(19px, 1.6vw, 23px);
    font-weight: 300;
    line-height: 1.65;
    color: #fff;
}



/* =====================================================
   GALLERY — shared mosaic + lightbox, Bacio styling
===================================================== */
.bacio-gallery .bz-gallery { padding: var(--b-space) 0; background: var(--b-paper); }
.bacio-gallery .bz-section-head h2 { font-family: var(--b-font); font-weight: 300; color: var(--b-deep); letter-spacing: -.01em; }
.bacio-gallery .bz-label { color: var(--b-blue); font-family: var(--b-font); letter-spacing: .32em; }
.bacio-gallery .bz-label::before { background: var(--b-magenta); }
.bacio-gallery .bz-gallery-hint { font-family: var(--b-font); color: #647A86; }
.bacio-gallery .bz-gallery-hint i { color: var(--b-magenta); }
.bacio-gallery .bz-tile, .bacio-gallery .bz-tile-btn { border-radius: 0; }
.bacio-gallery .bz-tile::after { background: var(--b-yellow); }
.bacio-page .bz-lightbox { font-family: var(--b-font); }


/* =====================================================
   THE BACIO MOMENT — closing
===================================================== */
.bacio-moment {
    position: relative;
    padding: calc(var(--b-space) * 1.1) 0;
    background: var(--b-paper);
    text-align: center;
    border-top: 1px solid var(--b-grey);
    overflow: clip;
}
.bacio-moment-melt { position: absolute; pointer-events: none; height: auto; }
.bacio-moment-melt--a { width: 420px; top: -60px; right: -120px; fill: var(--b-yellow); }
.bacio-moment-melt--b { width: 340px; bottom: -150px; left: -120px; fill: var(--b-magenta); }
.bacio-dots--moment { color: var(--b-blue); width: 220px; height: 220px; right: 14%; bottom: 40px; opacity: .5;
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }

.bacio-moment-inner { max-width: 820px; }
.bacio-moment .bacio-label { justify-content: center; }
.bacio-display--center { margin-bottom: 36px; }
.bacio-moment-inner p { max-width: 56ch; margin: 0 auto 14px; }


/* =====================================================
   SHARED SECTIONS BELOW THE PARTIAL (locations, other businesses)
===================================================== */
.bacio-page .bz-locations { background: var(--b-cloud); font-family: var(--b-font); }
.bacio-page .bz-locations .bz-label { color: var(--b-blue); letter-spacing: .32em; }
.bacio-page .bz-locations .bz-label::before { background: var(--b-magenta); }
.bacio-page .bz-locations h2 { font-family: var(--b-font); font-weight: 300; color: var(--b-deep); }
.bacio-page .bz-loc { border-radius: 0; background: #fff; border: 1px solid var(--b-grey); box-shadow: none; }
.bacio-page .bz-loc h3 { font-family: var(--b-font); font-weight: 400; color: var(--b-deep); }
.bacio-page .bz-loc-pin { color: var(--b-magenta); }
.bacio-page .bz-loc-link { color: var(--b-deep); }

.bacio-page .bz-more { font-family: var(--b-font); }
.bacio-page .bz-more h2 { font-family: var(--b-font); font-weight: 300; }
.bacio-page .bz-more-card { border-radius: 0; }


/* image buttons (open the shared lightbox) */
.bacio-image-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
}
.bacio-image-btn img { transition: transform var(--b-slow) var(--b-ease); }
.bacio-image-btn:hover img { transform: scale(1.04); }


/* =====================================================
   MOTION — visible by default; hidden states only once JS
   has confirmed it runs (.bacio-js), never with reduced motion
===================================================== */
.bacio-js [data-bacio-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--b-slow) var(--b-ease), transform var(--b-slow) var(--b-ease);
    transition-delay: calc(var(--d, 0) * 120ms);
}
.bacio-js [data-bacio-reveal].is-in { opacity: 1; transform: none; }

@keyframes bacio-melt-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.bacio-js .bacio-hero-melt { animation: bacio-melt-in 1600ms var(--b-ease) both; transform-origin: 70% 40%; }

@media (prefers-reduced-motion: reduce) {
    .bacio-page *, .bacio-page *::before, .bacio-page *::after { transition: none !important; animation: none !important; }
    .bacio-image-btn:hover img { transform: none; }
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
    .bacio-frame--main { width: 300px; right: 4%; }
    .bacio-frame--side { width: 200px; }
    .bacio-hero-stage { min-height: 500px; }
    .bacio-offer { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .bacio-offer li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
    .bacio-hero { padding-top: 130px; }
    .bacio-hero-grid { grid-template-columns: 1fr; }
    .bacio-hero-melt { top: auto; bottom: 30px; right: -14vw; width: min(82vw, 560px); }
    .bacio-dots--story, .bacio-dots--moment, .bacio-dots--hero { display: none; }
    .bacio-vertical { display: none; }
    .bacio-moment-melt--a { width: 300px; top: -170px; right: -130px; }
    .bacio-moment { padding-top: 140px; }
    .bacio-hero-stage { min-height: 0; height: clamp(420px, 95vw, 560px); }
    .bacio-frame--main { right: 6%; width: min(58vw, 320px); }
    .bacio-frame--side { left: 4%; width: min(40vw, 220px); }

    .bacio-story-grid { grid-template-columns: 1fr; }
    .bacio-story-grid .bacio-label,
    .bacio-statement,
    .bacio-story-body { grid-column: 1; grid-row: auto; }
    .bacio-story-body { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }

    .bacio-menu-grid { grid-template-columns: 1fr; }
    .bacio-dairy-inner { grid-template-columns: 1fr; }
    .bacio-dairy-text { margin-top: 28px; }
    .bacio-menu-stage { display: none; }
    .bacio-index li.is-on .bacio-index-thumb {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        margin: 0 0 22px;
    }
    .bacio-index li:not(.is-on) .bacio-index-name { color: var(--b-deep); }
    .bacio-index li .bacio-index-name { transform: none; }
    .bacio-index .bacio-diamond { transform: rotate(45deg) scale(1); }
}

@media (max-width: 560px) {
    .bacio-page p { font-size: 16px; }
    .bacio-logo { width: 170px; margin-bottom: 30px; }
    .bacio-offer { grid-template-columns: 1fr; }
    .bacio-offer li, .bacio-offer li + li { padding: 26px 0 0; border-left: 0; }
    .bacio-moment-melt--a { width: 260px; right: -110px; }
    .bacio-moment-melt--b { width: 220px; left: -100px; }
    .bacio-sprinkles--dairy { width: 180px; height: 180px; right: -60px; top: -10px; }
}
