/* maxheildsala.is main stylesheet */
:root {
    /*
     * Premium coffee palette from the approved Max Heildsala style direction.
     * Keep these variables as the source of truth for Elementor global colors too.
     */
    --max-navy: #0B1420;
    --max-navy-2: #07101A;
    --max-navy-3: #122235;
    --max-coffee: #4B2E1D;
    --max-copper: #D4A15A;
    --max-copper-2: #B97832;
    --max-cream: #F6F2EC;
    --max-light: #E7E5E1;
    --max-white: #FFFFFF;

    /* Backwards-compatible aliases used by the first theme version. */
    --max-brown: var(--max-navy);
    --max-brown-2: var(--max-navy-3);
    --max-caramel: var(--max-copper);
    --max-bg: var(--max-cream);

    --max-text: var(--max-navy);
    --max-muted: #6F655D;
    --max-border: rgba(75, 46, 29, .14);
    --max-border-dark: rgba(212, 161, 90, .28);
    --max-radius: 22px;
    --max-radius-lg: 34px;
    --max-shadow: 0 18px 48px rgba(11, 20, 32, .10);
    --max-shadow-dark: 0 28px 80px rgba(0, 0, 0, .30);

    --max-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: #02060B;
}

body {
    margin: 0;
    font-family: var(--max-font);
    color: var(--max-text);
    background: #02060B;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

#wpadminbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 999999 !important;
}

.max-site-main {
    background:
        radial-gradient(circle at 8% 0%, rgba(212, 161, 90, .10), transparent 26rem),
        var(--max-bg);
}

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

a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

button,
input,
select,
textarea {
    font: inherit;
}

.max-container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.max-narrow {
    width: min(780px, calc(100% - 32px));
}

.max-skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 999;
    transform: translateY(-160%);
    background: var(--max-copper);
    color: var(--max-navy);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.max-skip-link:focus {
    transform: translateY(0);
}

.max-site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(180deg, rgba(2,6,11,.96), rgba(2,6,11,.74));
    color: var(--max-white);
    backdrop-filter: blur(16px);
    border-bottom: 0;
}

.home .max-site-header,
.home .max-layout-page-header {
    position: absolute;
    top: -34px;
    right: 0;
    left: 0;
    z-index: 80;
}

.admin-bar.home .max-site-header,
.admin-bar.home .max-layout-page-header {
    top: 32px;
}

.max-layout-page-header {
    display: flow-root;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #02060B;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.max-layout-page-header > :first-child {
    margin-top: 0 !important;
}

.max-layout-page-header .elementor,
.max-layout-page-header .elementor-section-wrap {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.home .max-layout-page-header .elementor-section,
.home .max-layout-page-header .e-con {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: #02060B !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.home .max-layout-page-header > .elementor,
.home .max-layout-page-header .elementor-section-wrap,
.home .max-layout-page-header .elementor-top-section:first-child,
.home .max-layout-page-header .e-con:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home .max-layout-page-header .elementor-widget-wrap,
.home .max-layout-page-header .elementor-container {
    max-width: none !important;
    margin-top: 0 !important;
}

.max-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.max-logo a {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--max-copper);
    text-decoration: none;
}

.max-logo img {
    max-height: 48px;
    width: auto;
}

.max-primary-nav ul,
.max-site-footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0;
    margin: 0;
}

.max-primary-nav a,
.max-header-link,
.max-cart-link {
    text-decoration: none;
    font-weight: 900;
    font-size: .92rem;
    color: rgba(255,255,255,.96);
    text-shadow: 0 1px 12px rgba(0,0,0,.44);
}

.max-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.max-cart-link span {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    background: var(--max-copper);
    color: var(--max-navy);
    font-size: .75rem;
    margin-left: 4px;
    font-weight: 900;
}

.max-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 70%, rgba(212, 161, 90, .50), transparent 22rem),
        radial-gradient(circle at 58% 50%, rgba(7, 42, 72, .65), transparent 20rem),
        radial-gradient(circle at 88% 42%, rgba(185, 120, 50, .38), transparent 24rem),
        linear-gradient(105deg, #02060B 0%, #050813 46%, #03070D 100%);
    color: var(--max-white);
    min-height: 620px;
}

.max-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 58%, rgba(212,161,90,.36) 0 2px, transparent 3px),
        radial-gradient(circle at 76% 72%, rgba(255,255,255,.22) 0 1px, transparent 2px),
        radial-gradient(circle at 92% 28%, rgba(185,120,50,.34) 0 1px, transparent 2px);
    background-size: 34px 34px, 47px 47px, 59px 59px;
    opacity: .5;
    mask-image: linear-gradient(90deg, transparent 0%, black 45%, black 100%);
    pointer-events: none;
}

.max-hero-inner {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 32px;
    align-items: end;
    min-height: 620px;
    padding: 138px 0 0;
    position: relative;
    z-index: 1;
}

.max-hero h1 {
    font-family: var(--max-font-heading);
    font-size: clamp(3.3rem, 7.8vw, 6.4rem);
    line-height: .88;
    letter-spacing: 0;
    margin: 0 0 22px;
    max-width: 590px;
}

.max-hero p {
    font-size: 1.15rem;
    max-width: 680px;
    color: rgba(255,255,255,.86);
}

.max-hero .max-button-row {
    margin-bottom: 48px;
}

.max-hero-card {
    position: relative;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(212,161,90,.62), transparent 28rem),
        linear-gradient(180deg, transparent, rgba(2,6,11,.18));
    min-height: 410px;
    border-radius: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0 0 22px;
    box-shadow: none;
}

.max-hero-card::before {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -12%;
    width: 115%;
    height: 54%;
    background:
        radial-gradient(ellipse at center, rgba(185,120,50,.74), transparent 58%),
        linear-gradient(120deg, transparent, rgba(212,161,90,.45), transparent);
    filter: blur(2px);
}

.max-hero-can-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    gap: 16px;
}

.max-hero-can-row span {
    display: block;
    width: clamp(74px, 8vw, 108px);
    height: clamp(190px, 24vw, 310px);
    border-radius: 20px 20px 12px 12px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.18), transparent 20%, rgba(0,0,0,.32) 74%, rgba(255,255,255,.12)),
        linear-gradient(180deg, #9B6A36, #D7AE75 18%, #2E241D 19%, #D2A568 47%, #1A1210 48%, #C58A49 100%);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 24px 42px rgba(0,0,0,.38);
}

.max-hero-can-row span:nth-child(1),
.max-hero-can-row span:nth-child(5) {
    height: clamp(160px, 20vw, 250px);
    transform: translateY(18px);
}

.max-hero-can-row span:nth-child(3) {
    height: clamp(210px, 27vw, 340px);
    background:
        linear-gradient(90deg, rgba(255,255,255,.20), transparent 20%, rgba(0,0,0,.34) 74%, rgba(255,255,255,.12)),
        linear-gradient(180deg, #2F92B8, #C99B54 32%, #201816 33%, #D2A568 62%, #111 63%, #B97832 100%);
}

.max-hero-card > p {
    position: absolute;
    left: 28px;
    bottom: 20px;
    z-index: 2;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
}

.max-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 800;
    color: var(--max-caramel);
    margin: 0 0 10px;
}

.max-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.max-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--max-copper);
    background: linear-gradient(135deg, var(--max-copper), var(--max-copper-2));
    color: var(--max-navy);
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(212, 161, 90, .22);
}

.max-button-secondary {
    background: transparent;
    border-color: var(--max-copper);
    color: var(--max-copper);
    box-shadow: none;
}

.max-button-ghost {
    background: transparent;
    border-color: rgba(255,255,255,.42);
    color: var(--max-white);
    box-shadow: none;
}

.max-button-small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: .9rem;
}

.max-section {
    padding: 74px 0;
}

.max-section-muted {
    background:
        linear-gradient(180deg, rgba(255,255,255,.42), rgba(246,242,236,.88)),
        var(--max-cream);
}

.max-section-heading {
    margin-bottom: 28px;
}

.max-section-heading h2,
.max-cta-inner h2,
.max-page-header h1 {
    font-family: var(--max-font-heading);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1;
    letter-spacing: -.035em;
    margin: 0 0 14px;
}

.max-feature-grid,
.max-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.max-feature-card,
.max-card {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--max-border);
    border-radius: var(--max-radius);
    box-shadow: var(--max-shadow);
    overflow: clip;
}

.max-feature-card {
    padding: 28px;
}

.max-card-content {
    padding: 22px;
}

.max-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--max-cream);
}

.max-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.max-placeholder-image {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 55% 35%, rgba(212, 161, 90, .30), transparent 8rem),
        linear-gradient(135deg, var(--max-cream), var(--max-light));
}

.max-card h3,
.max-card h2,
.max-feature-card h3 {
    margin: 0 0 10px;
    line-height: 1.15;
}

.max-card h3 a,
.max-card h2 a {
    text-decoration: none;
}

.max-price {
    font-weight: 900;
    color: var(--max-coffee);
}

.max-small {
    font-size: .9rem;
    color: var(--max-muted);
}

.max-text-link {
    font-weight: 900;
    color: var(--max-coffee);
}

.max-cta-band {
    background:
        radial-gradient(circle at 82% 50%, rgba(212,161,90,.24), transparent 24rem),
        linear-gradient(135deg, var(--max-navy), #03070D);
    color: var(--max-white);
}

.max-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.max-site-footer {
    background: linear-gradient(135deg, var(--max-navy-2), #03070D);
    color: rgba(255,255,255,.86);
    padding: 56px 0 24px;
    border-top: 1px solid var(--max-border-dark);
}

.max-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.max-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    margin-top: 36px;
    padding-top: 18px;
    color: rgba(255,255,255,.62);
}

.max-page-header {
    padding: 54px 0 24px;
}

.max-content-layout {
    padding: 28px 0 74px;
}

.max-entry-content,
.max-recipe-single,
.max-store-single {
    font-size: 1.06rem;
}

.max-entry-content > * + *,
.max-recipe-single > * + * {
    margin-top: 1.2em;
}

.max-breadcrumbs {
    font-size: .9rem;
    color: var(--max-muted);
    margin-bottom: 14px;
}

.max-single-image {
    border-radius: var(--max-radius);
    margin: 24px 0;
}

.max-lead {
    font-size: 1.22rem;
    color: var(--max-muted);
}

.max-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.max-meta-strip span,
.max-tags span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--max-cream);
    color: var(--max-brown);
    font-weight: 700;
    font-size: .88rem;
}

.max-ingredient-list,
.max-step-list {
    padding-left: 1.3em;
}

.max-store-filters {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 18px;
    margin-bottom: 28px;
}

.max-store-filters label,
.max-b2b-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.max-store-filters input,
.max-store-filters select,
.max-b2b-form input,
.max-b2b-form select,
.max-b2b-form textarea {
    width: 100%;
    border: 1px solid var(--max-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--max-white);
}

.max-b2b-form {
    display: grid;
    gap: 14px;
    background: var(--max-white);
    border: 1px solid var(--max-border);
    border-radius: var(--max-radius);
    padding: 24px;
    box-shadow: var(--max-shadow);
}

.max-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 800;
}

.max-alert-success {
    background: #e9f8ef;
    color: #145c2b;
}

.max-alert-error {
    background: #fff1f0;
    color: #821b16;
}

.max-product-summary-box {
    background: var(--max-cream);
    border: 1px solid var(--max-border);
    border-radius: var(--max-radius);
    padding: 18px;
    margin: 18px 0;
}

.max-404 {
    padding: 80px 0;
}


.max-primary-nav a:hover,
.max-header-link:hover,
.max-cart-link:hover,
.max-primary-nav .current-menu-item > a,
.max-primary-nav .current_page_item > a {
    color: var(--max-copper);
}

.max-primary-nav .current-menu-item > a,
.max-primary-nav .current_page_item > a {
    border-bottom: 2px solid var(--max-copper);
    padding-bottom: 6px;
}

.max-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(212, 161, 90, .28);
}

.max-button-secondary:hover,
.max-button-ghost:hover {
    background: rgba(212, 161, 90, .12);
    color: var(--max-copper);
}

.max-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11,20,32,.82), rgba(11,20,32,.34) 52%, rgba(11,20,32,.08)),
        radial-gradient(circle at 90% 10%, rgba(212,161,90,.16), transparent 19rem);
}

.max-hero > * {
    position: relative;
    z-index: 1;
}

.max-hero h1 em,
.max-hero h1 strong {
    color: var(--max-copper);
    font-style: normal;
}

.max-hero-card::before {
    content: "";
    position: absolute;
    inset: auto -18% -38% 18%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(212,161,90,.42), transparent 68%);
    transform: rotate(-8deg);
}

.max-hero-card > * {
    position: relative;
    z-index: 1;
}

.max-card h3,
.max-card h2,
.max-feature-card h3,
.max-site-footer h2,
.max-site-footer h3 {
    font-family: var(--max-font-heading);
}

.max-feature-card:hover,
.max-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 58px rgba(11,20,32,.13);
}

.max-card,
.max-feature-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.max-site-footer a {
    color: rgba(255,255,255,.86);
    text-decoration: none;
}

.max-site-footer a:hover {
    color: var(--max-copper);
}

.max-store-filters input:focus,
.max-store-filters select:focus,
.max-b2b-form input:focus,
.max-b2b-form select:focus,
.max-b2b-form textarea:focus {
    outline: 2px solid rgba(212, 161, 90, .35);
    border-color: var(--max-copper);
}

::selection {
    background: var(--max-copper);
    color: var(--max-navy);
}


@media (max-width: 920px) {
    .home .max-site-header,
    .home .max-layout-page-header {
        position: relative;
        top: 0;
    }

    .max-hero-inner,
    .max-feature-grid,
    .max-grid,
    .max-footer-grid,
    .max-store-filters {
        grid-template-columns: 1fr;
    }

    .max-hero,
    .max-hero-inner {
        min-height: auto;
    }

    .max-hero-inner {
        padding: 58px 0 0;
    }

    .max-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .max-primary-nav {
        display: none;
    }

    .max-header-link {
        display: none;
    }
}

@media (max-width: 782px) {
    .admin-bar.home .max-site-header,
    .admin-bar.home .max-layout-page-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .max-container {
        width: min(100% - 24px, 1120px);
    }

    .max-header-inner {
        min-height: 64px;
    }

    .max-hero-inner {
        padding: 52px 0 0;
    }

    .max-section {
        padding: 52px 0;
    }

    .max-button {
        width: 100%;
    }

    .max-button-row {
        width: 100%;
    }
}
