/* Custom styles extracted from inline declarations in index.php */

/* Hero section tweaks */
.hero-subtitle-large {
    font-size: 98px;
    line-height: 1.1;
    display: inline-block;
}

.hero-cta-btn {
    background: #000;
    color: #fff;
    border-color: #000;
}

.hero-cta-btn:hover {
    color: #fff;
}

.hero-video {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    float: right;
    margin-left: auto;
}

.hero-video-btn {
    right: 62px;
    bottom: 62px;
}

.btn-accent-pink {
    background-color: #f86c85;
    border-color: #f86c85;
    color: #fff;
}

.btn-accent-pink:hover {
    color: #fff;
}

/* Tag presets and recipe cards */
.tag-green {
    background: #a3d75f;
    color: #111;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 500;
}

.tag-violet {
    background: #6040a1;
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 500;
}

.tag-outline {
    border: 1px solid #111;
    border-radius: 20px;
    padding: 6px 14px;
    color: #111;
}

.recipe-steps {
    margin: 15px 0 20px 20px;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
}

.ingredients {
    border: 1px solid #111;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 15px;
    line-height: 1.8;
    width: 100%;
}

.ingredients div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ddd;
}

.ingredients--spaced {
    margin-top: 30px;
}

/* Product cards grid */
.home-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1199.98px) {
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-cards {
        grid-template-columns: 1fr;
    }
}

.home-card {
    border: 1px solid var(--card-br, rgba(0, 0, 0, 0.08));
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}

.home-card .cover {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #f5eae5;
}

.home-card-body {
    padding: 14px 16px;
}

.home-card-title {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 18px;
}

.home-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.home-tag {
    border: 1px solid var(--card-br, rgba(0, 0, 0, 0.08));
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    color: #666;
}

.home-card-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid var(--card-br, rgba(0, 0, 0, 0.12));
    text-decoration: none;
}

.home-btn--dark {
    background: #111;
    color: #fff;
    border-color: #111;
}

.home-btn--ghost {
    background: #f3f3f5;
    color: #111;
    border-color: transparent;
}

/* iOS-like form controls */
.ios-input {
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid #dadada;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    font-size: 16px;
    line-height: 1.2;
}

.ios-input:focus {
    outline: none;
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ios-input::-webkit-outer-spin-button,
.ios-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ios-input[type=number] {
    -moz-appearance: textfield;
}

.ios-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.ios-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-switch .track {
    position: relative;
    width: 52px;
    height: 30px;
    flex: 0 0 52px;
    background: #e9e9ea;
    border-radius: 999px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ios-switch .track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s cubic-bezier(.22, .61, .36, 1), width 0.2s ease;
}

.ios-switch input:checked + .track {
    background: #34c759;
}

.ios-switch input:checked + .track::after {
    transform: translateX(22px);
}

.ios-switch input:active + .track::after {
    width: 28px;
}

.ios-switch .label {
    font-size: 15px;
}

.mxd-ios-modal .modal-content {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* Global modal helpers and calculator styling */
.t-sm {
    font-size: 12px !important;
}

body.is-locked {
    overflow: hidden;
}

.mxd-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
}

.mxd-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.mxd-modal__dialog {
    position: relative;
    width: min(960px, 92vw);
    margin: 8vh auto 4vh;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.26s cubic-bezier(.22, .61, .36, 1), opacity 0.2s ease;
}

.mxd-modal__header,
.mxd-modal__footer {
    padding: 16px 20px;
}

.mxd-modal__body {
    padding: 12px 20px 20px;
}

.mxd-modal__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.mxd-modal__close {
    appearance: none;
    border: 0;
    background: #f2f2f2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.mxd-modal__close:hover {
    background: #e9e9e9;
}

.mxd-modal__close:active {
    transform: scale(0.96);
}

.mxd-modal__close svg {
    width: 16px;
    height: 16px;
}

.mxd-modal.is-open {
    display: block;
}

.mxd-modal.is-open .mxd-modal__overlay {
    opacity: 1;
}

.mxd-modal.is-open .mxd-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (max-width: 640px) {
    .mxd-modal__dialog {
        width: 96vw;
        margin: 4vh auto;
        border-radius: 18px;
    }
}

.mxd-products-row .mxd-product-pill {
    width: 100%;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.mxd-products-row .mxd-product-pill img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.mxd-products-row .mxd-product-pill span {
    font-weight: 600;
}

.mxd-products-row .mxd-product-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.mxd-products-row .mxd-product-pill.active {
    outline: 2px solid #111;
    background: #fff;
}

.mxd-calc-hero {
    background: #faf8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mxd-calc-hero img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.mxd-calc-card {
    /* Placeholder for future customisations */
}

.radius-l {
    border-radius: 24px;
}

.radius-xl {
    border-radius: 32px;
}

.padding-4 {
    padding: 24px;
}

.bg-base-tint,
.bg-base {
    background: #fff;
}

.mxd-title-xl {
    font-size: 42px;
    font-weight: 800;
}

.mxd-muted {
    color: #707070;
}

.mxd-eyebrow {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.mxd-profit-value {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
}

.mxd-bars__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.mxd-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin: 10px 0;
}

.mxd-bar__track {
    height: 10px;
    background: #e9e9e9;
    border-radius: 999px;
    overflow: hidden;
}

.mxd-bar__fill {
    height: 100%;
    width: 0%;
    background: color(display-p3 0.9725 0.4235 0.5216);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.mxd-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mxd-switch .form-check-input {
    width: 40px;
    height: 22px;
    cursor: pointer;
}

/* Calculator helpers */
.bg-matcha {
    background-color: #bfce93;
}

.bg-cocoa {
    background-color: #ceb185;
}

.calc-trigger-btn {
    background: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 7px;
    padding: 5px 10px;
    border: 0;
}

.calc-trigger-btn:hover {
    color: #fff;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.modal-primary-btn {
    background: #222;
    color: #fff;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 14px;
    border: 0;
}

.modal-primary-btn:hover {
    color: #fff;
}

/* Price modal */
#price-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

#price-modal.is-open {
    display: block;
}

#price-modal .mxd-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: saturate(120%) blur(2px);
}

#price-modal .mxd-modal__dialog {
    position: relative;
    max-width: 520px;
    margin: 8vh auto 0;
    padding: 24px 22px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    animation: modal-pop 0.18s ease-out;
}

@keyframes modal-pop {
    from {
        transform: translateY(10px) scale(0.98);
        opacity: 0.6;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

#price-modal .mxd-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    background: #f3f3f3;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

#price-modal .mxd-modal__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

#price-modal .mxd-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#price-modal .mxd-label {
    font-size: 12px;
    opacity: 0.7;
    display: block;
    margin: 0 0 6px;
}

#price-modal .mxd-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#price-modal .mxd-input:focus {
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

#price-modal .mxd-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.6;
}

#price-modal .mxd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

#price-modal .mxd-btn--accent {
    background: var(--accent-color, #111);
    color: var(--accent-contrast, #fff);
}

#price-modal .mxd-btn--accent:hover {
    filter: saturate(1.05) brightness(1.03);
}

#price-modal .mxd-field--city {
    position: relative;
}

#price-modal .mxd-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow: auto;
}

#price-modal .mxd-suggest__item {
    padding: 10px 12px;
    cursor: pointer;
}

#price-modal .mxd-suggest__item:hover,
#price-modal .mxd-suggest__item.is-active {
    background: #f6f6f6;
}

#price-modal .mxd-form__note {
    margin-top: 8px;
    font-size: 13px;
}

.price-form__submit {
    line-height: 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: "CeraPro", sans-serif;
}

.price-form__disclaimer {
    font-size: 10px;
    line-height: 12px;
    text-align: center;
    padding: 0 20px;
}

.price-form__note {
    text-align: center;
}

/* Header */
.header-logo-img {
    width: 100px;
    margin-top: -15px;
}

.header-phone-link {
    color: #000;
}

.header-phone-link:hover,
.header-phone-link:focus {
    color: #000;
}

.header-price-link {
    color: #000;
    border-color: #000;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 14px 26px;
    border-radius: 999px;
}

.header-price-link:hover,
.header-price-link:focus {
    color: #fff;
    background: #000;
    border-color: #000;
}

.header-menu .nav-link {
    background: transparent !important;
}

.drawer-logo {
    height: 50px;
    width: auto;
}

.header-drawer-cta {
    font-weight: 500;
    text-align: center;
    color: #fff;
    background: #000;
    padding: 12px;
    border-radius: 8px;
}

.mxd-burger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mxd-burger span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: .25s;
}

.mxd-burger span:nth-child(1) { top: 12px; }
.mxd-burger span:nth-child(2) { top: 19px; }
.mxd-burger span:nth-child(3) { top: 26px; }

.mxd-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mxd-burger.is-active span:nth-child(2) { opacity: 0; }
.mxd-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mxd-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.mxd-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: .25s;
    height: 100vh;
    z-index: -1;
    backdrop-filter: blur(4rem);
}

.mxd-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 420px);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
}

.mxd-drawer[aria-hidden="false"] {
    pointer-events: auto;
}

.mxd-drawer[aria-hidden="false"] .mxd-drawer__backdrop {
    opacity: 1;
}

.mxd-drawer[aria-hidden="false"] .mxd-drawer__panel {
    transform: translateX(0);
}

.mxd-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mxd-drawer__close {
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}

.mxd-drawer__nav ul {
    list-style: none;
    margin: 10px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mxd-drawer__nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    background: #f7f7f7;
}

.mxd-drawer__nav a:active {
    background: #eee;
}

.mxd-drawer__cta {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.drawer-phone {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #111;
    background: #f3f3f3;
}

.drawer-btn {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    background: #111;
}

@media screen and (min-width: 800px) {
    #mxd-drawer {
        display: none;
    }

    .filter-close {
        display: none;
    }
}

@media (max-width: 992px) {
    .mxd-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mxd-header__controls {
        display: none;
    }

    .mxd-header__logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mxd-modal__dialog {
        margin: 8vh 5px 5px !important;
    }

    .mxd-header__controls,
    #header-main-menu,
    .mxd-header__controls .btn {
        display: none !important;
        visibility: hidden !important;
    }

    .mxd-header {
        width: calc(100% - 3rem);
    }

    .header-logo-img {
        width: 80px;
        margin-top: -20px;
    }

    .mxd-hero-08__wrap {
        padding-top: 100px;
    }

    .inner-headline__paragraph {
        margin-top: 1.8rem;
    }

    .mxd-burger {
        position: fixed;
        top: 14px;
        right: 16px;
        z-index: 1200;
        width: 42px;
        height: 42px;
        backdrop-filter: blur(6px);
        border-radius: 10px;
    }

    .mxd-burger span {
        background: #111;
    }

    .mxd-header__logo {
        padding-right: 64px;
    }

    .mxd-drawer {
        z-index: 3000;
    }

    .mxd-drawer__panel {
        width: min(88vw, 420px);
    }
}
