/*
 * BerryFields home page.
 * Every colour, radius and shadow comes from css/tokens.css (--bf-*).
 * Section rhythm follows the Harvestime home: hero, fact strip, brands,
 * range, buying channels, story, contact.
 */

/* ==========================================================================
   Shared section header
   ========================================================================== */

.bf-head {
    max-width: 680px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    text-align: center;
}

.bf-head h2 {
    margin-bottom: 16px;
}

.bf-head__lead {
    font-size: var(--bf-fs-lead);
    color: var(--bf-muted);
    line-height: 1.6;
}

.bf-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.bf-head--split h2 {
    margin-bottom: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.bf-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
    background:
        radial-gradient(60% 70% at 85% 30%, var(--bf-blush) 0%, transparent 70%),
        var(--bf-cream);
}

.bf-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}

.bf-hero__title {
    max-width: 13ch;
    margin-bottom: 22px;
}

.bf-hero__lead {
    max-width: 52ch;
    margin-bottom: 32px;
    font-size: var(--bf-fs-lead);
    line-height: 1.6;
    color: var(--bf-body);
}

.bf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bf-hero__brands {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 500px;
    gap: 10px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--bf-line);
}

.bf-hero__brands a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 6px 12px;
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bf-hero__brands a:hover {
    border-color: var(--bf-rose);
    box-shadow: var(--bf-shadow-sm);
}

.bf-hero__brands img {
    height: auto;
    width: auto;
    max-height: 36px;
    max-width: 100%;
}

.bf-hero__visual {
    position: relative;
    max-width: 540px;
    margin-left: auto;
    width: 100%;
}

.bf-hero__frame {
    position: relative;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-lg);
    box-shadow: var(--bf-shadow-lg);
}

.bf-hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6% 8% 18%;
}

.bf-hero__caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 16px 20px;
    background: var(--bf-berry-deep);
    border-radius: var(--bf-radius);
    color: var(--bf-white);
}

.bf-hero__caption span {
    display: block;
    font-size: var(--bf-fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bf-rose);
}

.bf-hero__caption strong {
    display: block;
    margin-top: 2px;
    font-family: var(--bf-font-display);
    font-size: 22px;
    font-weight: 500;
}

.bf-hero__card {
    position: absolute;
    left: -36px;
    top: 14%;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
    padding: 10px 16px 10px 10px;
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
}

.bf-hero__card img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--bf-radius-sm);
}

.bf-hero__card span {
    display: block;
    font-size: var(--bf-fs-xs);
    color: var(--bf-muted);
}

.bf-hero__card strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    color: var(--bf-ink);
}

.bf-hero__seal {
    position: absolute;
    top: -22px;
    right: -18px;
    width: 104px;
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bf-gold);
    border: 6px solid var(--bf-cream);
    border-radius: 50%;
    color: var(--bf-ink);
    box-shadow: var(--bf-shadow);
}

.bf-hero__seal span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bf-hero__seal strong {
    font-family: var(--bf-font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

/* ==========================================================================
   Fact strip
   ========================================================================== */

.bf-facts {
    background: var(--bf-white);
    border-top: 1px solid var(--bf-line);
    border-bottom: 1px solid var(--bf-line);
}

.bf-facts__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.bf-facts__list li {
    padding: 26px 24px;
    border-left: 1px solid var(--bf-line);
}

.bf-facts__list li:first-child {
    border-left: 0;
    padding-left: 0;
}

.bf-facts__list strong {
    display: block;
    font-family: var(--bf-font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--bf-ink);
}

.bf-facts__list span {
    display: block;
    margin-top: 4px;
    font-size: var(--bf-fs-sm);
    color: var(--bf-muted);
}

/* ==========================================================================
   Brands
   ========================================================================== */

.bf-brands__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bf-brand {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bf-brand:hover {
    transform: translateY(-4px);
    border-color: var(--bf-rose);
    box-shadow: var(--bf-shadow);
}

.bf-brand__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--bf-wash);
    overflow: hidden;
}

.bf-brand__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6%;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.bf-brand:hover .bf-brand__media img {
    transform: scale(1.04);
}

.bf-brand__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.bf-brand__logo {
    height: 34px;
    width: auto;
    align-self: flex-start;
    margin-bottom: 14px;
}

.bf-brand__tag {
    font-size: var(--bf-fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bf-muted);
}

.bf-brand h3 {
    margin: 6px 0 10px;
}

.bf-brand p {
    flex: 1;
    margin-bottom: 18px;
    font-size: var(--bf-fs-sm);
    color: var(--bf-body);
}

.bf-brand--harvestime .bf-link,
.bf-brand--elgin .bf-link {
    color: var(--bf-leaf-text);
}

/* ==========================================================================
   Range
   ========================================================================== */

.bf-range {
    background: var(--bf-wash);
}

.bf-range__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bf-product__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bf-product__link:hover {
    transform: translateY(-4px);
    box-shadow: var(--bf-shadow);
    color: inherit;
}

.bf-product__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bf-white);
}

.bf-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bf-product__link:hover .bf-product__media img {
    transform: scale(1.04);
}

.bf-product__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 18px 20px 22px;
    border-top: 1px solid var(--bf-line-soft);
}

.bf-product h3 {
    flex: 1;
    font-size: 19px;
    font-weight: 500;
}

.bf-product__cta {
    display: inline-flex;
    white-space: pre;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-berry);
}

/* ==========================================================================
   Where to buy
   ========================================================================== */

.bf-buy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.bf-channel {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 34px);
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
}

.bf-channel__logo {
    height: 44px;
    width: auto;
    align-self: flex-start;
    margin-bottom: 22px;
}

.bf-channel__logo--square {
    height: 56px;
    border-radius: var(--bf-radius-sm);
}

.bf-channel__who {
    margin-bottom: 6px;
    font-size: var(--bf-fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bf-berry);
}

.bf-channel h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.bf-channel > p:not(.bf-channel__who) {
    font-size: var(--bf-fs-sm);
}

.bf-channel ul {
    display: grid;
    gap: 8px;
    margin: 20px 0 28px;
    padding-top: 20px;
    border-top: 1px solid var(--bf-line-soft);
    font-size: var(--bf-fs-sm);
    flex: 1;
}

.bf-channel li {
    position: relative;
    padding-left: 24px;
}

.bf-channel li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 10px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    color: var(--bf-berry-bright);
}

.bf-channel--feature {
    background: var(--bf-leaf);
    border-color: var(--bf-leaf);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--bf-shadow-lg);
}

.bf-channel--feature h3 {
    color: var(--bf-white);
}

.bf-channel--feature .bf-channel__who {
    color: var(--bf-gold);
}

.bf-channel--feature .bf-channel__logo {
    padding: 6px 10px;
    height: 56px;
    background: var(--bf-white);
    border-radius: var(--bf-radius-sm);
}

.bf-channel--feature ul {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.bf-channel--feature li::before {
    color: var(--bf-gold);
}

/* ==========================================================================
   Story
   ========================================================================== */

.bf-story {
    padding: var(--bf-section) 0;
    background: var(--bf-berry-deep);
    color: rgba(255, 255, 255, 0.82);
}

.bf-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.bf-story__media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bf-white);
    border-radius: var(--bf-radius-lg);
}

.bf-story__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
}

.bf-story .bf-eyebrow {
    color: var(--bf-rose);
}

.bf-story h2 {
    max-width: 16ch;
    margin-bottom: 20px;
    color: var(--bf-white);
}

.bf-story__copy > p {
    max-width: 54ch;
    font-size: var(--bf-fs-lead);
    line-height: 1.6;
}

.bf-story__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bf-story__facts dt {
    font-family: var(--bf-font-display);
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 500;
    line-height: 1;
    color: var(--bf-white);
}

.bf-story__facts dd {
    margin-top: 8px;
    font-size: var(--bf-fs-xs);
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.bf-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.bf-contact__info h2 {
    margin-bottom: 16px;
}

.bf-contact__list {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

.bf-contact__list li {
    padding: 18px 20px;
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-sm);
}

.bf-contact__label {
    display: block;
    margin-bottom: 2px;
    font-size: var(--bf-fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bf-muted);
}

.bf-contact__list a {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.bf-contact__form {
    padding: clamp(24px, 3.5vw, 40px);
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-lg);
    box-shadow: var(--bf-shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-ink);
}

.form-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    color: var(--bf-ink);
    background: var(--bf-cream);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-sm);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:hover {
    border-color: var(--bf-rose);
}

.form-input:focus {
    background: var(--bf-white);
    border-color: var(--bf-berry);
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

.form-hint {
    margin: -2px 0 8px;
    font-size: var(--bf-fs-xs);
    color: var(--bf-muted);
}

.form-count {
    margin-top: 6px;
    font-size: var(--bf-fs-xs);
    color: var(--bf-muted);
    text-align: right;
}

.form-count.is-over {
    color: var(--bf-berry-deep);
    font-weight: 600;
}

.form-complaint {
    padding: 16px;
    background: var(--bf-cream);
    border: 1px dashed var(--bf-line);
    border-radius: var(--bf-radius-sm);
}

.form-complaint[hidden],
.form-hint[hidden],
.form-call[hidden] {
    display: none;
}

.form-group .form-file-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--bf-berry);
    background: var(--bf-white);
    border: 1px solid var(--bf-berry);
    border-radius: var(--bf-radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.form-group .form-file-btn:hover {
    color: var(--bf-white);
    background: var(--bf-berry);
}

/* The real input stays focusable for keyboards; the label is the button. */
.form-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.form-file:focus-visible + .form-file-btn {
    outline: 2px solid var(--bf-berry);
    outline-offset: 2px;
}

.form-photos {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.form-photos:empty {
    margin: 0;
}

.form-photo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--bf-white);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-sm);
}

.form-photo img {
    flex: none;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.form-photo__name {
    flex: 1;
    min-width: 0;
    font-size: var(--bf-fs-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-photo__remove {
    flex: none;
    min-height: 36px;
    padding: 6px 12px;
    font: inherit;
    font-size: var(--bf-fs-xs);
    font-weight: 600;
    color: var(--bf-berry-deep);
    background: transparent;
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-sm);
    cursor: pointer;
}

.form-photo__remove:hover {
    border-color: var(--bf-berry);
}

.form-call {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: var(--bf-fs-sm);
    color: var(--bf-berry-deep);
    background: var(--bf-blush);
    border-radius: var(--bf-radius-sm);
}

.form-call a {
    font-weight: 600;
    color: inherit;
}

.form-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-privacy-note {
    margin-top: 14px;
    font-size: var(--bf-fs-xs);
    color: var(--bf-muted);
}

.form-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--bf-radius-sm);
    font-size: var(--bf-fs-sm);
    font-weight: 500;
}

.form-message.success {
    background: var(--bf-wash);
    border: 1px solid var(--bf-leaf-text);
    color: var(--bf-leaf-text);
}

.form-message.error {
    background: var(--bf-blush);
    border: 1px solid var(--bf-berry);
    color: var(--bf-berry-deep);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .bf-brands__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-buy__grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .bf-facts__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-facts__list li:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .bf-facts__list li:nth-child(n + 3) {
        border-top: 1px solid var(--bf-line);
    }
}

@media (max-width: 900px) {
    .bf-hero__grid,
    .bf-story__grid,
    .bf-contact__grid {
        grid-template-columns: 1fr;
    }

    .bf-hero__visual {
        margin: 12px auto 0;
        max-width: 460px;
    }

    .bf-hero__card {
        left: -8px;
    }

    .bf-hero__seal {
        right: -4px;
    }

    .bf-range__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-story__media {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .bf-hero {
        padding-top: 36px;
    }

    .bf-hero__actions .btn {
        flex: 1 1 100%;
    }

    .bf-hero__brands {
        gap: 8px;
        margin-top: 28px;
        padding-top: 22px;
    }

    .bf-hero__brands a {
        height: 48px;
        padding: 4px;
    }

    .bf-hero__brands img {
        height: auto;
        max-height: 32px;
        max-width: 100%;
    }

    .bf-hero__card {
        display: none;
    }

    .bf-hero__seal {
        width: 84px;
        height: 84px;
        top: -14px;
        border-width: 4px;
    }

    .bf-hero__seal strong {
        font-size: 22px;
    }

    .bf-hero__caption strong {
        font-size: 19px;
    }

    .bf-facts__list {
        grid-template-columns: 1fr;
    }

    .bf-facts__list li,
    .bf-facts__list li:nth-child(3) {
        padding: 18px 0;
        border-left: 0;
    }

    .bf-facts__list li + li {
        border-top: 1px solid var(--bf-line);
    }

    .bf-brands__grid {
        grid-template-columns: 1fr;
    }

    .bf-brand {
        flex-direction: row;
    }

    .bf-brand__media {
        flex: 0 0 38%;
        aspect-ratio: auto;
    }

    .bf-brand__media img {
        padding: 10px;
    }

    .bf-brand__body {
        padding: 16px 16px 18px;
    }

    .bf-brand__tag {
        font-size: 11px;
    }

    .bf-brand h3 {
        margin: 4px 0 6px;
    }

    .bf-brand p {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.5;
    }

    .bf-brand__logo {
        height: 28px;
        margin-bottom: 10px;
    }

    .bf-head--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .bf-range__grid {
        gap: 12px;
    }

    .bf-product__body {
        padding: 14px;
    }

    .bf-product h3 {
        font-size: 16px;
    }

    .bf-product__cta {
        font-size: 13px;
    }

    .bf-product__where {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
