/* =========================================================
   Friends of Pack 323 storefront
   ========================================================= */

:root {
    --green-950: #0d352a;
    --green-900: #123f32;
    --green-800: #1b5141;
    --cream: #f7f3eb;
    --cream-dark: #eee6d9;
    --gold: #d8a321;
    --gold-dark: #b88311;
    --ink: #1d211f;
    --muted: #686b67;
    --white: #ffffff;
    --shadow: 0 14px 35px rgba(24, 28, 24, 0.12);
    --radius: 12px;
    --page-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
}

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

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Top message bar */
.impact-bar {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    color: var(--white);
    background: var(--green-950);
    font-size: 0.93rem;
    font-weight: 700;
    text-align: center;
}

.impact-bar span {
    color: var(--gold);
}

/* Header */
.site-header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(13, 53, 42, 0.1);
}

.site-header__inner {
    width: min(calc(100% - 3rem), var(--page-width));
    min-height: 112px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--green-950);
    text-decoration: none;
}

.brand__mark {
    position: relative;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--green-900);
    box-shadow: 0 8px 18px rgba(13, 53, 42, 0.2);
}

.brand__mountain::before,
.brand__mountain::after {
    content: "";
    position: absolute;
    bottom: 20px;
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-bottom: 42px solid var(--cream);
}

.brand__mountain::before {
    left: 15px;
}

.brand__mountain::after {
    right: 8px;
    transform: scale(0.72);
    transform-origin: bottom;
}

.brand__trail {
    position: absolute;
    left: 17px;
    bottom: 14px;
    width: 55px;
    height: 15px;
    border-top: 7px solid var(--gold);
    border-radius: 50%;
    transform: rotate(-10deg);
}

.brand__copy {
    display: grid;
}

.brand__eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand__name {
    font-size: clamp(1.65rem, 2.7vw, 2.7rem);
    line-height: 1;
    font-weight: 700;
}

.brand__tagline {
    margin-top: 0.3rem;
    color: #454945;
    font-size: 0.95rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 700;
}

.main-nav a {
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--gold-dark);
}

.header-cart {
    display: flex;
    align-items: center;
    min-width: 118px;
}

.header-cart .ec-cart-widget {
    position: static !important;
    margin: 0 !important;
}

/* Make the Ecwid header cart visually match the site navigation. */
.header-cart .ec-minicart {
    min-height: 44px !important;
    padding: 0.55rem 0.9rem !important;
    color: var(--green-950) !important;
    background: var(--cream) !important;
    border: 1px solid rgba(13, 53, 42, 0.22) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.header-cart .ec-minicart:hover {
    border-color: var(--gold-dark) !important;
}

.menu-button {
    display: none;
    width: 44px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: transparent;
}

.menu-button span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--green-950);
}

/* Hero */
.hero {
    min-height: 510px;
    display: grid;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 26, 20, 0.76) 0%, rgba(7, 26, 20, 0.35) 48%, rgba(7, 26, 20, 0.04) 75%),
        url("images/coffee-hero.jpg") center / cover no-repeat;
}

.hero__inner {
    width: min(calc(100% - 3rem), var(--page-width));
    margin: 0 auto;
}

.hero__content {
    width: min(620px, 55%);
    padding: 5rem 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #f4d278;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.97;
    letter-spacing: -0.035em;
}

.hero p {
    max-width: 610px;
    margin: 1.35rem 0 1.8rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.55;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 54px;
    padding: 0 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.button--gold {
    color: var(--white);
    background: linear-gradient(180deg, #e2ad2c, var(--gold-dark));
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2);
}

.button--gold:hover,
.button--gold:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Store */
.store-section {
    width: min(calc(100% - 3rem), var(--page-width));
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--green-950);
}

.section-heading__line {
    width: 70px;
    height: 1px;
    background: var(--green-800);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading p {
    margin: 0.15rem 0 0;
    color: #484d49;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.featured-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.product-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ded5c7;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(30, 35, 31, 0.05);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card__body {
    min-height: 136px;
    padding: 1rem 1.15rem 1.2rem;
    text-align: center;
}

.product-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
    line-height: 1.15;
}

.product-card__title--dark {
    color: #6d2f21;
}

.product-card__title--medium {
    color: #2b6140;
}

.product-card__title--decaf {
    color: #174978;
}

.product-card__title--founders {
    color: #a87916;
    font-size: 1.25rem;
}

.product-card p {
    margin: 0;
    color: #414541;
    font-size: 0.98rem;
    line-height: 1.5;
}

.ecwid-shell {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #d8cfc1;
}

/* Useful Ecwid refinements. Ecwid may update class names over time. */
.ec-size .ec-store .grid-product__wrap {
    border-radius: 10px;
}

.ec-size .ec-store .grid-product__image {
    border-radius: 10px;
}

.ec-size .ec-store .grid-product__title-inner {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.ec-size .ec-store .form-control__button {
    background: var(--green-900);
}

/* Responsive */
@media (max-width: 1000px) {
    .featured-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__content {
        width: 62%;
    }
}

@media (max-width: 760px) {
    .impact-bar {
        font-size: 0.82rem;
    }

    .site-header__inner {
        width: min(calc(100% - 2rem), var(--page-width));
        min-height: 92px;
    }

    .brand__mark {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 13px;
    }

    .brand__mountain::before {
        left: 8px;
        bottom: 15px;
        transform: scale(0.72);
    }

    .brand__mountain::after {
        right: 0;
        bottom: 15px;
        transform: scale(0.52);
    }

    .brand__trail {
        left: 10px;
        bottom: 10px;
        width: 43px;
    }

    .brand__eyebrow,
    .brand__tagline {
        display: none;
    }

    .brand__name {
        font-size: 1.45rem;
    }

    .menu-button {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 1rem 1.5rem 1.35rem;
        background: var(--white);
        border-top: 1px solid #dedede;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
        gap: 0;
    }

    .main-nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid #ece8e1;
    }

    .hero {
        min-height: 560px;
        align-items: end;
        background-position: 62% center;
    }

    .hero__inner {
        width: min(calc(100% - 2rem), var(--page-width));
    }

    .hero__content {
        width: 100%;
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.3rem);
    }

    .store-section {
        width: min(calc(100% - 2rem), var(--page-width));
        padding-top: 2.2rem;
    }

    .section-heading__line {
        width: 32px;
    }

    .section-heading h2 {
        letter-spacing: 0.1em;
    }

    .featured-products {
        grid-template-columns: 1fr;
    }
}


/* Dedicated shop-page introduction */
.shop-intro {
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 26, 20, 0.82), rgba(7, 26, 20, 0.48)),
        url("images/coffee-hero.jpg") center 58% / cover no-repeat;
}

.shop-intro__inner {
    width: min(calc(100% - 3rem), var(--page-width));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.shop-intro h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.shop-intro p {
    max-width: 720px;
    margin: 1rem 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.18rem;
    line-height: 1.55;
}

/* Ecwid integration: make the catalog feel like part of this design. */
.ecwid-shell {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid #ded5c7;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: clamp(1rem, 2vw, 2rem);
}

.ec-size .ec-store {
    color: var(--ink) !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.ec-size .ec-store .grid-product__wrap {
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e1d8ca !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(24, 28, 24, 0.07) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-size .ec-store .grid-product__wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(24, 28, 24, 0.13) !important;
}

.ec-size .ec-store .grid-product__image {
    border-radius: 11px 11px 0 0 !important;
}

.ec-size .ec-store .grid-product__title-inner,
.ec-size .ec-store .product-details__product-title {
    color: var(--green-950) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 700 !important;
}

.ec-size .ec-store .grid-product__price-amount,
.ec-size .ec-store .product-details__product-price {
    color: var(--green-900) !important;
    font-weight: 800 !important;
}

.ec-size .ec-store .form-control__button,
.ec-size .ec-store .details-product-purchase__add-buttons .form-control__button {
    color: #fff !important;
    background: var(--green-900) !important;
    border-radius: 8px !important;
}

.ec-size .ec-store .form-control__button:hover {
    background: var(--green-800) !important;
}

.ec-size .ec-store .ec-link {
    color: var(--green-800) !important;
}

.ec-size .ec-store .ec-breadcrumbs__link,
.ec-size .ec-store .ec-category-page__title {
    font-family: Georgia, "Times New Roman", serif !important;
}

@media (max-width: 760px) {
    .header-cart {
        min-width: 0;
        padding: 0.55rem 0;
    }

    .header-cart .ec-minicart {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .shop-intro__inner {
        width: min(calc(100% - 2rem), var(--page-width));
        padding: 3.5rem 0;
    }
}


/* =========================================================
   Homepage storefront refinements
   ========================================================= */

.store-section--home {
    padding-bottom: 3.5rem;
}

.ecwid-shell--home {
    margin-top: 0;
}

.shop-more {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.button--green {
    color: var(--white);
    background: var(--green-900);
    box-shadow: 0 8px 22px rgba(13, 53, 42, 0.18);
}

.button--green:hover,
.button--green:focus-visible {
    background: var(--green-800);
    transform: translateY(-1px);
}

/* Hide Ecwid's duplicate heading/search/category controls so the custom
   website heading and navigation remain the visual storefront controls. */
.ecwid-shell .ec-store__head,
.ecwid-shell .ec-store__search,
.ecwid-shell .ec-search,
.ecwid-shell .ec-category-page__subcategories,
.ecwid-shell .ec-store__categories,
.ecwid-shell .ec-footer {
    display: none !important;
}

/* Keep useful product sorting, product cards, product pages, cart, and checkout. */
.ecwid-shell .ec-store__content-wrapper,
.ecwid-shell .ec-grid,
.ecwid-shell .ec-category-page,
.ecwid-shell .ec-product-browser {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.purpose-section {
    color: var(--white);
    background:
        linear-gradient(rgba(13, 53, 42, 0.94), rgba(13, 53, 42, 0.94)),
        url("images/coffee-hero.jpg") center / cover no-repeat;
}

.purpose-section__inner,
.collections-section__inner {
    width: min(calc(100% - 3rem), var(--page-width));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.section-heading--light {
    color: var(--white);
}

.section-heading--light .section-heading__line {
    background: rgba(255, 255, 255, 0.55);
}

.section-heading--light p {
    color: rgba(255, 255, 255, 0.78);
}

.benefit-grid,
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.benefit-card {
    min-height: 250px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}

.benefit-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    color: var(--green-950);
    background: var(--gold);
    border-radius: 50%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
}

.benefit-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.45rem;
}

.benefit-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

.collections-section {
    background: #fbf8f2;
}

.collection-card {
    min-height: 285px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    overflow: hidden;
    color: var(--white);
    text-decoration: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover,
.collection-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(24, 28, 24, 0.18);
}

.collection-card--heritage {
    background:
        linear-gradient(180deg, rgba(10, 26, 18, 0.18), rgba(10, 26, 18, 0.9)),
        url("images/medium-roast.png") center / cover no-repeat;
}

.collection-card--founders {
    background:
        linear-gradient(180deg, rgba(10, 26, 18, 0.18), rgba(10, 26, 18, 0.9)),
        url("images/founders-series.png") center / cover no-repeat;
}

.collection-card--future {
    color: var(--green-950);
    background:
        linear-gradient(135deg, rgba(216, 163, 33, 0.15), rgba(13, 53, 42, 0.08)),
        var(--cream-dark);
    border: 1px dashed rgba(13, 53, 42, 0.28);
}

.collection-card__eyebrow {
    margin-bottom: 0.4rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.collection-card h3 {
    margin: 0;
    font-size: 2rem;
}

.collection-card p {
    max-width: 30rem;
    margin: 0.65rem 0 1rem;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.collection-card__link {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.shipping-bar {
    width: min(calc(100% - 3rem), var(--page-width));
    margin: 0 auto 4.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid #ded5c7;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(24, 28, 24, 0.07);
}

.shipping-bar div {
    display: grid;
    gap: 0.2rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.shipping-bar div + div {
    border-left: 1px solid #e2d9cb;
}

.shipping-bar strong {
    color: var(--green-950);
}

.shipping-bar span {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

/* Keep the cart integrated into the custom header. */
.header-cart .ec-cart-widget,
.header-cart .ec-minicart {
    position: static !important;
}

.header-cart .ec-minicart {
    color: var(--green-950) !important;
    background: transparent !important;
    border-color: rgba(13, 53, 42, 0.24) !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .benefit-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card {
        min-height: 320px;
    }
}

@media (max-width: 760px) {
    .purpose-section__inner,
    .collections-section__inner {
        width: min(calc(100% - 2rem), var(--page-width));
        padding: 3.25rem 0;
    }

    .shipping-bar {
        width: min(calc(100% - 2rem), var(--page-width));
        grid-template-columns: 1fr;
    }

    .shipping-bar div + div {
        border-top: 1px solid #e2d9cb;
        border-left: 0;
    }

    .header-cart .ec-minicart {
        border: 0 !important;
        padding-left: 0 !important;
    }
}


/* Shop page uses the same full hero as the landing page, without a button. */
.hero--shop .hero__content {
    padding-bottom: 5rem;
}
