/* ==========================================================================
   Manaka Coffee — Simple, warm, typographic
   ========================================================================== */

:root {
    --c-cream: #f5efe4;
    --c-cream-deep: #ece3d1;
    --c-ink: #1a1612;
    --c-ink-soft: #4a3f34;
    --c-accent: #988145;
    --c-accent-deep: #6f5b28;
    --c-line: rgba(26, 22, 18, 0.12);

    --f-display: "Fraunces", Georgia, serif;
    --f-body: "Karla", system-ui, sans-serif;

    --wrap: 1200px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 2px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-accent-deep); }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0 0 0.5em;
    font-variation-settings: "opsz" 144;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

em { font-family: var(--f-display); font-style: italic; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--pad);
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent-deep);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--c-ink);
    background: var(--c-ink);
    color: var(--c-cream);
    border-radius: var(--radius);
    transition: all .25s var(--ease);
}
.btn:hover { background: var(--c-accent-deep); border-color: var(--c-accent-deep); color: var(--c-cream); }
.btn--ghost { background: transparent; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-cream); }
.btn--accent { background: var(--c-accent); border-color: var(--c-accent); }
.btn--on-dark { color: var(--c-cream); border-color: var(--c-cream); }
.btn--on-dark:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 239, 228, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}
/* Bull-head + wordmark, gold on transparent — sits proudly in the header */
.brand-logo--bullhead {
    height: 72px;
    width: auto;
}
.nav { padding-block: 0.75rem; }
@media (max-width: 720px) {
    .brand-logo--bullhead { height: 56px; }
    .nav { padding-block: 0.5rem; gap: 0.5rem; }
    /* Push cart icon hard right next to the hamburger so it stops floating
       in the middle (the hidden <nav> wrapper used to take a flex slot). */
    .nav .cart-link { margin-left: auto; }
}

.nav-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}
.nav-links a.active,
.nav-links a:hover { border-bottom-color: var(--c-accent); }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
}
.cart-count {
    position: absolute;
    top: 0; right: -4px;
    background: var(--c-accent);
    color: var(--c-cream);
    font-size: 0.65rem;
    min-width: 18px; height: 18px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-weight: 600;
}
.cart-count[data-cart-count="0"] { display: none; }

.nav-toggle {
    display: none;
    background: none; border: none;
    width: 36px; height: 36px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--c-ink);
    transition: all .25s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
    padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 8vw, 6rem);
    text-align: center;
    position: relative;
}
.hero--image {
    min-height: 78vh;
    display: grid;
    place-items: center;
    color: var(--c-cream);
    background-size: cover;
    background-position: center;
}
.hero--image::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,22,18,0.25) 0%, rgba(26,22,18,0.55) 100%);
    z-index: 0;
}
.hero--image h1 { text-wrap: balance; }
.hero--image .hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero-lede {
    max-width: 52ch;
    margin: 1.5rem auto 2rem;
    font-size: 1.1rem;
    color: var(--c-ink-soft);
}
.hero--image .hero-lede { color: rgba(245, 239, 228, 0.85); }

/* ---------- Hero carousel ---------- */
.hero-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;                     /* override generic section padding-block */
    isolation: isolate;
    background: var(--c-cream);     /* cream underneath — tint sits on top */
}
.hero-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s var(--ease), visibility 0s linear .7s;
    text-decoration: none;
    color: inherit;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .7s var(--ease);
    z-index: 1;
}

/* ---- Editorial variant: two-column text + bag, own typography ---- */
.hero-carousel--editorial .hero-track {
    min-height: clamp(460px, 56vh, 600px);
}
.hero-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    width: 100%;
    padding-block: 1rem;
}
.hero-slide-text { text-align: left; }
.hero-slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--c-accent-deep);
    margin-bottom: 1.25rem;
    line-height: 1;
}
.hero-slide-eyebrow i {
    display: block;
    width: 2.75rem;
    height: 1px;
    background: var(--c-accent);
}
.hero-slide-title {
    font-family: var(--f-display);
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0 0 1.25rem;
    color: var(--c-ink);
    text-wrap: balance;
}
.hero-slide-note {
    font-family: var(--f-display);
    font-style: italic;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--c-ink-soft);
    max-width: 30ch;
    line-height: 1.45;
    margin: 0 0 2rem;
}
.hero-slide-cta {
    display: inline-block;
    padding-bottom: 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-accent);
    transition: color .2s var(--ease), border-color .2s var(--ease), padding-right .2s var(--ease);
}
.hero-slide:hover .hero-slide-cta {
    color: var(--c-accent-deep);
    border-bottom-color: var(--c-accent-deep);
    padding-right: 0.5rem;
}
.hero-slide-media {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
/* Decorative gold ring behind the bag — subtle, editorial */
.hero-slide-media::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid var(--c-accent);
    border-radius: 50%;
    opacity: 0.55;
    z-index: 0;
}
.hero-slide-media img {
    position: relative;
    z-index: 1;
    max-width: 72%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 40px rgba(26, 22, 18, 0.22));
    transition: transform .6s var(--ease);
}
.hero-slide:hover .hero-slide-media img {
    transform: translateY(-6px);
}

@media (max-width: 720px) {
    .hero-carousel--editorial .hero-track { min-height: 100vh; }
    .hero-slide-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding-block: 2rem;
    }
    .hero-slide-text { text-align: center; }
    .hero-slide-eyebrow { justify-content: center; }
    .hero-slide-note { margin-inline: auto; }
    .hero-slide-media { aspect-ratio: 5/4; max-height: 42vh; }
    .hero-slide-media::before { width: 60%; }
}

.hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    z-index: 4;
    padding: 0.4rem 0.75rem;
    background: rgba(26, 22, 18, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}
.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(245, 239, 228, 0.5);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.hero-dots button:hover { background: rgba(245, 239, 228, 0.8); }
.hero-dots button[aria-selected="true"] {
    background: var(--c-cream);
    width: 22px;
    border-radius: 4px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(245, 239, 228, 0.85);
    backdrop-filter: blur(6px);
    color: var(--c-ink);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .3s var(--ease), background .2s var(--ease);
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--c-cream); }
.hero-arrow--prev { left: calc(var(--pad) + 0.75rem); }
.hero-arrow--next { right: calc(var(--pad) + 0.75rem); }

@media (max-width: 720px) {
    .hero-arrow { display: none; }
    .hero-dots { bottom: 0.6rem; }
}

/* ---------- Sections ---------- */
section {
    padding-block: clamp(4rem, 8vw, 7rem);
}
.section-head {
    max-width: 60ch;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-head p { color: var(--c-ink-soft); font-size: 1.05rem; }

/* ---------- Product grid ---------- */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 1.75rem;
}
@media (max-width: 960px) {
    .products { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}
@media (max-width: 520px) {
    .products { grid-template-columns: 1fr; }
}
.product {
    text-align: center;
}
.product-media {
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, var(--c-cream-deep) 0%, #e5d9bf 100%);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    display: grid;
    place-items: center;
    padding: 2rem 1.5rem 2.75rem;
    --peak: 5%;
    clip-path: polygon(
        0% 0%, 100% 0%,
        100% calc(100% - var(--peak)),
        90% 100%,
        80% calc(100% - var(--peak)),
        70% 100%,
        60% calc(100% - var(--peak)),
        50% 100%,
        40% calc(100% - var(--peak)),
        30% 100%,
        20% calc(100% - var(--peak)),
        10% 100%,
        0% calc(100% - var(--peak))
    );
}
.product-media img {
    max-width: 72%;
    max-height: 92%;
    width: auto; height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(26, 22, 18, 0.18));
    transition: transform .6s var(--ease);
}
.product:hover .product-media img { transform: translateY(-6px) scale(1.03); }
.product-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--c-cream);
    color: var(--c-accent-deep);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    font-weight: 500;
}
.product h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.product-note {
    color: var(--c-ink-soft);
    font-size: 0.92rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}
.product-price {
    font-family: var(--f-display);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: color .2s var(--ease);
}
.product .btn { font-size: 0.78rem; padding: 0.7rem 1.25rem; }

.product-options {
    display: grid;
    margin-bottom: 1rem;
    text-align: left;
    border-top: 1px solid var(--c-line);
}

/* Native <details> accordion, styled */
.option-acc {
    border-bottom: 1px solid var(--c-line);
}
.option-acc > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.65rem 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    transition: color .2s var(--ease);
}
.option-acc > summary::-webkit-details-marker { display: none; }
.option-acc > summary::after {
    content: "+";
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: var(--c-accent-deep);
    line-height: 1;
    transition: transform .2s var(--ease);
    flex-shrink: 0;
}
.option-acc[open] > summary::after { content: "−"; }
.option-acc > summary:hover { color: var(--c-accent-deep); }

.option-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
    font-weight: 500;
    flex-shrink: 0;
}
.option-value {
    font-family: var(--f-display);
    font-size: 0.95rem;
    margin-left: auto;
    text-align: right;
}

.option-pills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.25rem 0 0.85rem;
}
.option-pill {
    flex: 1 1 auto;
    min-width: 44px;
    padding: 0.5rem 0.55rem;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--c-line);
    color: var(--c-ink);
    cursor: pointer;
    border-radius: 2px;
    transition: all .18s var(--ease);
    text-align: center;
    white-space: nowrap;
}
.option-pill:hover { border-color: var(--c-accent); color: var(--c-accent-deep); }
.option-pill[aria-pressed="true"] {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: var(--c-cream);
}
.option-pill[aria-pressed="true"]:hover { color: var(--c-cream); }

/* ---------- Feature bleed — full-width image background with overlaid text --- */
.feature-bleed {
    position: relative;
    min-height: 60vh;
    display: grid;
    place-items: center;
    padding-block: clamp(5rem, 10vw, 9rem);
    color: var(--c-cream);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--c-ink);
}
.feature-bleed::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,22,18,0.25) 0%, rgba(26,22,18,0.7) 100%);
}
.feature-bleed .wrap {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}
.feature-bleed .eyebrow { color: var(--c-accent); }
.feature-bleed h2 { color: var(--c-cream); text-wrap: balance; }
.feature-bleed p   { color: rgba(245, 239, 228, 0.85); font-size: 1.1rem; }
.feature-bleed p em { color: var(--c-cream); }

/* ---------- Editorial section marker (line + numeral) ---------- */
.section-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--c-accent-deep);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.section-mark i {
    display: block;
    width: 2.75rem;
    height: 1px;
    background: var(--c-accent);
}
.feature-bleed .section-mark,
.hero-welcome .section-mark { color: var(--c-accent); }
.feature-bleed .section-mark i,
.hero-welcome .section-mark i { background: var(--c-accent); opacity: 0.85; }

/* ---------- Welcome hero — text top, button bottom, padded off both edges ---
   Text sits in the upper portion (above the heads), button is anchored to
   the bottom of the image. Both are padded in from the section's top/bottom
   so neither hugs the edge. Scrim darkens only the top where text reads.
   --------------------------------------------------------------------------- */
.hero-welcome {
    min-height: 88vh;
    padding-block: clamp(2rem, 5vw, 3.5rem);
    padding-inline: 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--c-cream);
}
.hero-welcome.hero--image::before {
    background: linear-gradient(
        180deg,
        rgba(26, 22, 18, 0.55) 0%,
        rgba(26, 22, 18, 0.32) 18%,
        rgba(26, 22, 18, 0)    38%,
        rgba(26, 22, 18, 0)    100%
    );
}
.hero-welcome .hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-welcome .section-mark {
    justify-content: center;
    color: var(--c-accent);
    margin-bottom: 0.75rem;
}
.hero-welcome .section-mark i {
    background: var(--c-accent);
    opacity: 0.85;
}
.hero-welcome h1 {
    font-size: clamp(1.5rem, 2.7vw, 2.2rem);
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--c-cream);
    text-wrap: balance;
}
.hero-welcome .hero-lede {
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 38ch;
    margin: 0 auto;
    color: rgba(245, 239, 228, 0.85);
}
.hero-welcome-btn {
    margin-top: auto;                              /* push to bottom of hero */
    align-self: stretch;
    margin-inline: clamp(0.75rem, 3vw, 2rem);      /* pad in from sides */
    padding: 1rem 2rem;
    font-size: 0.8rem;
    justify-content: center;
}

@media (max-width: 720px) {
    .hero-welcome { min-height: 82vh; }
}

/* ---------- Offset accent frame behind a split-media image ---------- */
.frame-offset {
    position: relative;
    isolation: isolate;
    overflow: visible;   /* let the offset rectangle extend past the image box */
}
.frame-offset::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(1.25rem, 1.25rem);
    background: var(--c-accent);
    z-index: -1;
    transition: transform .4s var(--ease);
}
.frame-offset--ink::before { background: var(--c-ink); }
.frame-offset--deep::before { background: var(--c-cream-deep); }
.frame-offset:hover::before { transform: translate(0.75rem, 0.75rem); }
.frame-offset > img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Bold gold accent bar on the inside edge that faces the text.
   Works on .frame-offset OR a plain .split-media (cleaner for stacked figures). */
.frame-offset.edge-right::after,
.frame-offset.edge-left::after,
.split-media.edge-right::after,
.split-media.edge-left::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 10px;
    background: var(--c-accent);
    z-index: 2;
    pointer-events: none;
}
.frame-offset.edge-right::after,
.split-media.edge-right::after { right: 0; }
.frame-offset.edge-left::after,
.split-media.edge-left::after  { left: 0; }

/* Ensure the bar has something to attach to */
.split-media.edge-left,
.split-media.edge-right { position: relative; }

/* Vertical stack of two figures inside a split column */
.figure-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.figure-stack > figure { margin: 0; }
.figure-stack .split-media {
    aspect-ratio: 4 / 3;
}

/* ---------- Text-top + side-by-side image pair (About §03 layout) ---------- */
.about-text-top {
    max-width: 720px;
    margin: 0 auto 3rem;
}
.about-text-top .section-mark { justify-content: flex-start; }

.image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.image-pair > figure { margin: 0; }
.image-pair-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-cream-deep);
    position: relative;
}
.image-pair-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bold gold spine at the seam between the two images (5px from each side) */
.image-pair > figure:first-child .image-pair-media::after,
.image-pair > figure:last-child  .image-pair-media::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 5px;
    background: var(--c-accent);
    z-index: 3;
    pointer-events: none;
}
.image-pair > figure:first-child .image-pair-media::after { right: 0; }
.image-pair > figure:last-child  .image-pair-media::after { left: 0; }

.image-pair > figure:first-child .split-caption { padding-right: 1rem; }
.image-pair > figure:last-child  .split-caption { padding-left: 1rem; }

@media (max-width: 720px) {
    .image-pair { grid-template-columns: 1fr; gap: 1.5rem; }
    .image-pair > figure:first-child .image-pair-media::after,
    .image-pair > figure:last-child  .image-pair-media::after { display: none; }
    .image-pair > figure:first-child .split-caption,
    .image-pair > figure:last-child  .split-caption { padding: 0; }
}

/* ---------- Figure caption under an editorial image ---------- */
.split-caption {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--c-ink-soft);
    margin: 1rem 0 0;
    padding-left: 1rem;
    border-left: 1px solid var(--c-accent);
}

/* ---------- Drop cap (apply to a single <p>) ---------- */
.dropcap::first-letter {
    font-family: var(--f-display);
    font-size: 4.25em;
    float: left;
    line-height: 0.82;
    margin: 0.08em 0.16em 0 -0.04em;
    color: var(--c-accent-deep);
    font-weight: 400;
}

/* ---------- Pull quote divider ---------- */
.pullquote {
    padding-block: clamp(4rem, 9vw, 7rem);
    text-align: center;
}
.pullquote blockquote {
    font-family: var(--f-display);
    font-style: italic;
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    line-height: 1.3;
    color: var(--c-ink);
    margin: 0 auto;
    max-width: 22ch;
    text-wrap: balance;
    position: relative;
}
.pullquote blockquote::before,
.pullquote blockquote::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--c-accent);
    margin: 1.5rem auto;
}
.pullquote cite {
    display: block;
    font-style: normal;
    font-family: var(--f-body);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent-deep);
    margin-top: -0.5rem;
}

/* ---------- Soft centered CTA (no dark block, no zigzags) ---------- */
.cta-soft {
    text-align: center;
    padding-block: clamp(4rem, 9vw, 7rem);
}
.cta-soft::before {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    background: var(--c-accent);
    margin: 0 auto 2rem;
}
.cta-soft h2 { max-width: 18ch; margin-inline: auto; }
.cta-soft p { max-width: 52ch; margin: 1rem auto 2rem; color: var(--c-ink-soft); }
.cta-soft-buttons {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 480px) {
    .cta-soft-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .cta-soft-buttons .btn { justify-content: center; }
}

/* ---------- Feature split ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split-media {
    aspect-ratio: 4 / 5;
    background: var(--c-cream-deep);
    overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Locations ---------- */
.locations {
    background: var(--c-ink);
    color: var(--c-cream);
}
.locations h2 { color: var(--c-cream); }
.locations .section-head p { color: rgba(245, 239, 228, 0.7); }
.loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: rgba(245, 239, 228, 0.15);
    border: 1px solid rgba(245, 239, 228, 0.15);
}
.loc {
    padding: 2rem 2rem 1.75rem;
    background: var(--c-ink);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: background .25s var(--ease);
    position: relative;
}
.loc:hover { background: #2a221a; color: inherit; }
.loc-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 22px;
    height: 22px;
    color: var(--c-accent);
    opacity: 0.85;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.loc:hover .loc-icon {
    opacity: 1;
    transform: translateY(-3px);
}
.loc h3 {
    color: var(--c-cream);
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    padding-right: 2rem; /* clear the icon */
}
.loc-sub {
    color: rgba(245, 239, 228, 0.7);
    font-size: 0.92rem;
    margin: 0 0 1.25rem;
}
.loc-address {
    color: rgba(245, 239, 228, 0.55);
    font-size: 0.8rem;
    font-style: normal;
    line-height: 1.45;
    margin: 0;
    max-width: 28ch;
}
.loc-phone {
    display: inline-block;
    margin-top: 0.4rem;
    color: rgba(245, 239, 228, 0.75);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.loc-cta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 239, 228, 0.12);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent);
    transition: padding-left .25s var(--ease);
}
.loc:hover .loc-cta { padding-left: 0.25rem; }

/* ---------- Contact / forms ---------- */
.form {
    display: grid;
    gap: 1.25rem;
    max-width: 520px;
    margin-inline: auto;
}
.form label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--c-ink-soft);
}
.form input, .form textarea, .form select {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    color: var(--c-ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none;
    border-color: var(--c-accent);
}
.form textarea { resize: vertical; min-height: 120px; }

/* ---------- Cart drawer / page ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--c-line);
    align-items: center;
}
.cart-item-media {
    aspect-ratio: 1;
    background: var(--c-cream-deep);
    overflow: hidden;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-family: var(--f-display); margin: 0 0 0.25rem; font-size: 1.05rem; }
.cart-item .qty {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 0.5rem;
}
.cart-item .qty button {
    width: 28px; height: 28px;
    background: transparent;
    border: 1px solid var(--c-line);
    cursor: pointer;
    font: inherit;
    color: var(--c-ink);
}
.cart-item-remove {
    background: none; border: none; cursor: pointer;
    color: var(--c-ink-soft);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cart-item-remove:hover { color: var(--c-accent-deep); }

.cart-summary {
    background: var(--c-cream-deep);
    padding: 2rem;
    position: sticky;
    top: 100px;
}
.cart-summary h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.cart-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}
.cart-row--total {
    border-top: 1px solid var(--c-line);
    margin-top: 0.75rem; padding-top: 1rem;
    font-family: var(--f-display);
    font-size: 1.3rem;
}
.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--c-ink-soft);
}

/* ---------- Media / press grid ---------- */
.press-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
}
@media (max-width: 960px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .press-grid { grid-template-columns: 1fr; } }

.press-item {
    display: flex;
    flex-direction: column;
    background: var(--c-cream-deep);
    color: var(--c-ink);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.press-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(26, 22, 18, 0.12);
}
.press-item-media {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--c-cream);
}
.press-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.press-item:hover .press-item-media img { transform: scale(1.04); }
.press-item-body { padding: 1.25rem 1.5rem 1.5rem; }
.press-item-body .eyebrow { margin-bottom: 0.5rem; }
.press-item-body h3 {
    font-family: var(--f-display);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    line-height: 1.15;
}
.press-item-body p {
    color: var(--c-ink-soft);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0 0 1rem;
}
.press-item-cta {
    display: inline-block;
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-accent);
    transition: color .2s var(--ease), padding-right .2s var(--ease);
}
.press-item:hover .press-item-cta {
    color: var(--c-accent-deep);
    padding-right: 0.4rem;
}

/* ---------- How-it-works steps (Stockists) ---------- */
.how-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    counter-reset: step;
}
@media (max-width: 960px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .how-steps { grid-template-columns: 1fr; } }

.how-steps > li {
    padding-top: 1.25rem;
    border-top: 1px solid var(--c-line);
    position: relative;
}
.how-num {
    display: block;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--c-accent-deep);
    margin-bottom: 0.75rem;
}
.how-steps > li h3 {
    font-family: var(--f-display);
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}
.how-steps > li p {
    color: var(--c-ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Homebrews pricing ---------- */
.tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.tier {
    padding: 2.5rem 2rem;
    background: var(--c-cream-deep);
    text-align: center;
}
.tier--featured {
    background: var(--c-ink);
    color: var(--c-cream);
}
.tier--featured h3 { color: var(--c-cream); }
.tier h3 { margin-bottom: 0.25rem; }
.tier .price {
    font-family: var(--f-display);
    font-size: 2.5rem;
    margin-block: 1rem;
}
.tier ul {
    list-style: none; padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}
.tier li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26,22,18,0.08);
    font-size: 0.95rem;
}
.tier--featured li { border-color: rgba(245,239,228,0.15); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--c-ink);
    color: rgba(245, 239, 228, 0.7);
    padding-block: 4rem 2rem;
}
.site-footer a { color: rgba(245, 239, 228, 0.7); }
.site-footer a:hover { color: var(--c-cream); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(245,239,228,0.12);
}
.footer-brand {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--c-cream);
    margin: 0 0 0.5rem;
}
.footer-tag { font-style: italic; margin: 0; }
.footer-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-cream);
    margin-bottom: 1rem;
    font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 0.25rem 0; font-size: 0.92rem; }
.footer-base {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--c-cream);
        padding: 5rem var(--pad) 2rem;     /* 5rem clears the ~72px header height */
        gap: 1rem;
        border-bottom: 1px solid var(--c-line);
        transform: translateY(-100%);       /* fully above viewport when closed */
        transition: transform .35s var(--ease);
        z-index: 40;                        /* sits below the sticky header (z:50) */
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
    .split { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: initial; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-base { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Decorative edges — zigzag dividers between contrasting sections.
   Usage: add .edge-zz-bottom (or --cream-deep / --ink / --cream) to the
   darker/image section to make its bottom edge zigzag into the colour
   below it. Use .edge-zz-top variants for top edges.
   ========================================================================== */
.edge-zz-bottom, .edge-zz-top,
.edge-zz-bottom--cream, .edge-zz-bottom--cream-deep, .edge-zz-bottom--ink,
.edge-zz-top--cream, .edge-zz-top--cream-deep, .edge-zz-top--ink {
    position: relative;
}

.edge-zz-bottom::after, .edge-zz-top::after,
.edge-zz-bottom--cream::after, .edge-zz-bottom--cream-deep::after, .edge-zz-bottom--ink::after,
.edge-zz-top--cream::after, .edge-zz-top--cream-deep::after, .edge-zz-top--ink::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 16px;
    pointer-events: none;
    background-repeat: repeat-x;
    background-size: 72px 16px;
    z-index: 3;
}

/* BOTTOM teeth — triangles point UP into the parent (parent gets zigzag lower edge) */
.edge-zz-bottom::after,
.edge-zz-bottom--cream::after,
.edge-zz-bottom--cream-deep::after,
.edge-zz-bottom--ink::after {
    bottom: 0;
}
.edge-zz-bottom::after,
.edge-zz-bottom--cream::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26' preserveAspectRatio='none'><path d='M0 26 L22 0 L44 26 Z' fill='%23f5efe4'/></svg>");
}
.edge-zz-bottom--cream-deep::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26' preserveAspectRatio='none'><path d='M0 26 L22 0 L44 26 Z' fill='%23ece3d1'/></svg>");
}
.edge-zz-bottom--ink::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26' preserveAspectRatio='none'><path d='M0 26 L22 0 L44 26 Z' fill='%231a1612'/></svg>");
}

/* TOP teeth — triangles point DOWN into the parent (parent gets zigzag upper edge) */
.edge-zz-top::after,
.edge-zz-top--cream::after,
.edge-zz-top--cream-deep::after,
.edge-zz-top--ink::after {
    top: 0;
}
.edge-zz-top::after,
.edge-zz-top--cream::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26' preserveAspectRatio='none'><path d='M0 0 L22 26 L44 0 Z' fill='%23f5efe4'/></svg>");
}
.edge-zz-top--cream-deep::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26' preserveAspectRatio='none'><path d='M0 0 L22 26 L44 0 Z' fill='%23ece3d1'/></svg>");
}
.edge-zz-top--ink::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26' preserveAspectRatio='none'><path d='M0 0 L22 26 L44 0 Z' fill='%231a1612'/></svg>");
}

/* Tighter teeth variant — optional, for a subtler / more rhythmic feel */
.edge-zz-tight::after { background-size: 48px 20px !important; height: 20px !important; }

/* ==========================================================================
   Diamond shape treatment for IMAGE / MEDIA blocks.
   Uses clip-path: peaks on top AND bottom are aligned on the same x-columns,
   giving each repeating unit a leaf/diamond silhouette joined at the waists.
   Three peaks top, three peaks bottom, four valleys each.
   ========================================================================== */
.shape-diamond {
    --peak: 7%;            /* how deep the valleys cut in (top & bottom) */
    clip-path: polygon(
        /* TOP: valleys at 0, 33.33, 66.67, 100%; peaks UP at 16.67, 50, 83.33% */
        0% var(--peak),
        16.67% 0%,
        33.33% var(--peak),
        50% 0%,
        66.67% var(--peak),
        83.33% 0%,
        100% var(--peak),
        /* down the right edge */
        100% calc(100% - var(--peak)),
        /* BOTTOM R→L: peaks DOWN at 83.33, 50, 16.67%; valleys at same x as top */
        83.33% 100%,
        66.67% calc(100% - var(--peak)),
        50% 100%,
        33.33% calc(100% - var(--peak)),
        16.67% 100%,
        0% calc(100% - var(--peak))
    );
}

/* Softer variant — shallower peaks, 4 teeth instead of 3, for wider images */
.shape-diamond--wide {
    --peak: 5%;
    clip-path: polygon(
        0% var(--peak),
        12.5% 0%, 25% var(--peak),
        37.5% 0%, 50% var(--peak),
        62.5% 0%, 75% var(--peak),
        87.5% 0%, 100% var(--peak),
        100% calc(100% - var(--peak)),
        87.5% 100%, 75% calc(100% - var(--peak)),
        62.5% 100%, 50% calc(100% - var(--peak)),
        37.5% 100%, 25% calc(100% - var(--peak)),
        12.5% 100%, 0% calc(100% - var(--peak))
    );
}

/* Hero-image specific: only top & bottom teeth on a full-width section. */
.shape-diamond-hero {
    --peak: 40px;
    clip-path: polygon(
        0% var(--peak),
        16.67% 0%, 33.33% var(--peak),
        50% 0%, 66.67% var(--peak),
        83.33% 0%, 100% var(--peak),
        100% calc(100% - var(--peak)),
        83.33% 100%, 66.67% calc(100% - var(--peak)),
        50% 100%, 33.33% calc(100% - var(--peak)),
        16.67% 100%, 0% calc(100% - var(--peak))
    );
}

/* ---------- Single-edge diamond shapes -------------------------------------
   Use these when you want teeth on only one side of an image. Three teeth,
   corners stay flush (no chipped corners). --peak controls how far the
   teeth protrude/cut into the opposite dimension.
   --------------------------------------------------------------------------- */

/* Teeth along the BOTTOM edge only — 5 peaks, flat top + sides. */
.shape-diamond-bottom {
    --peak: 5%;
    clip-path: polygon(
        0% 0%, 100% 0%,
        100% calc(100% - var(--peak)),
        90% 100%,
        80% calc(100% - var(--peak)),
        70% 100%,
        60% calc(100% - var(--peak)),
        50% 100%,
        40% calc(100% - var(--peak)),
        30% 100%,
        20% calc(100% - var(--peak)),
        10% 100%,
        0% calc(100% - var(--peak))
    );
}

/* Teeth along the RIGHT edge only — 5 peaks, used when text sits to the right. */
.shape-diamond-right {
    --peak: 6%;
    clip-path: polygon(
        0% 0%,
        calc(100% - var(--peak)) 0%,
        100% 10%,
        calc(100% - var(--peak)) 20%,
        100% 30%,
        calc(100% - var(--peak)) 40%,
        100% 50%,
        calc(100% - var(--peak)) 60%,
        100% 70%,
        calc(100% - var(--peak)) 80%,
        100% 90%,
        calc(100% - var(--peak)) 100%,
        0% 100%
    );
}

/* Teeth along the LEFT edge only — 5 peaks, used when text sits to the left. */
.shape-diamond-left {
    --peak: 6%;
    clip-path: polygon(
        var(--peak) 0%,
        100% 0%, 100% 100%,
        var(--peak) 100%,
        0% 90%,
        var(--peak) 80%,
        0% 70%,
        var(--peak) 60%,
        0% 50%,
        var(--peak) 40%,
        0% 30%,
        var(--peak) 20%,
        0% 10%
    );
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(16px); transition: all .8s var(--ease); }
    .reveal.in { opacity: 1; transform: none; }
}
