/**
 * About page.
 *
 * The page is built in Elementor; these classes are the ones the editor
 * assigns to its containers and widgets. They carry the parts Elementor
 * cannot express cleanly - fluid section spacing, fluid headings and the
 * card treatments - so the layout stays editable while the look holds.
 *
 * .hebd-about-section  one full-width band
 * .hebd-about-inner    the band's content, on the site container
 */

.hebd-about-section {
    --hebd-about-space: clamp(48px, 6vw, 104px);

    padding-block: var(--hebd-about-space);
    color: var(--hebd-text);
    font-family: var(--hebd-font-body);
}

/* Elementor gives every container a default inset; the band, its container
   and the columns inside it carry their spacing from here instead. */
.hebd-about-section,
.hebd-about-section .e-con,
.hebd-about-section .e-con-inner {
    /* Elementor sets these per element, so the page's own gutter has to say
       so plainly; it is the one thing that must match the header exactly. */
    --padding-inline: 0px !important;
    --padding-block: 0px !important;
    --container-default-padding-inline: 0px;
    --container-default-padding-block: 0px;
    /* The widgets carry their own margins, as the design has them. */
    --widgets-spacing: 0px;
    --widgets-spacing-row: 0px;
    --widgets-spacing-column: 0px;
}

.hebd-about-section .elementor-widget:not(:last-child) {
    margin-block-end: 0;
}

/* The site container, so every band lines up with the header. */
.hebd-about-section .hebd-about-inner {
    width: 100%;
    max-width: var(--hebd-container-max);
    margin-inline: auto;
    padding-inline: var(--hebd-gutter) !important;
}

.hebd-about-section .hebd-about__eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--hebd-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hebd-about-section h2 {
    margin: 0 0 16px;
    font-family: var(--hebd-font-heading);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--hebd-text);
}

.hebd-about-section p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--hebd-text-muted);
}

.hebd-about-section p:last-child {
    margin-bottom: 0;
}

/* ---- Shared buttons ---- */

.hebd-about-section .hebd-about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hebd-about-section :focus-visible {
    outline: 2px solid var(--hebd-primary);
    outline-offset: 3px;
}

/* ---- Two-column blocks ---- */

.hebd-about-section .hebd-about__media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--hebd-soft);
}

.hebd-about__media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.hebd-about__media:hover img {
    transform: scale(1.02);
}

/* ---- Hero ---- */

.hebd-about__hero {
    /* Warm cream behind the whole band; the content stays in the container. */
    background: linear-gradient(180deg, var(--hebd-soft-tint) 0%, var(--hebd-bg) 100%);
}

.hebd-about__hero h1 {
    margin: 0 0 18px;
    font-family: var(--hebd-font-heading);
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--hebd-text);
}

.hebd-about__hero p {
    max-width: 58ch;
    font-size: 17px;
}

.hebd-about__hero .hebd-about__media img {
    aspect-ratio: 5 / 4;
}

/* ---- Process ---- */

.hebd-about-section .hebd-about__head {
    max-width: 62ch;
    margin-bottom: clamp(28px, 3vw, 44px);
}

.hebd-about__head--center {
    margin-inline: auto;
    text-align: center;
}

.hebd-about__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    counter-reset: hebd-step;
}

.hebd-about-section .hebd-about__step {
    position: relative;
    padding: 28px 24px;
    border-radius: 20px;
    background: var(--hebd-surface);
    border: 1px solid var(--hebd-line);
}

.hebd-about-section .hebd-about__step-no {
    display: block;
    margin-bottom: 14px;
    color: var(--hebd-primary);
    font-family: var(--hebd-font-heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.hebd-about__step h3,
.hebd-about__value h3,
.hebd-about__reason h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hebd-text);
}

.hebd-about__step p,
.hebd-about__value p,
.hebd-about__reason p {
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Values ---- */

.hebd-about__values-band {
    background: var(--hebd-soft-tint);
}

.hebd-about__values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.hebd-about-section .hebd-about__value {
    padding: 30px 26px;
    border-radius: 20px;
    background: var(--hebd-surface);
    border: 1px solid var(--hebd-line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hebd-about-section .hebd-about__value:hover {
    transform: translateY(-3px);
    box-shadow: var(--hebd-shadow-card);
}

.hebd-about-section .hebd-about__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--hebd-soft);
    color: var(--hebd-primary);
}

/* ---- Categories ---- */

.hebd-about-section .hebd-about__categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hebd-about__category {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.hebd-about__category-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: var(--hebd-soft);
    overflow: hidden;
}

.hebd-about__category-media img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    transition: transform .3s ease;
}

.hebd-about__category:hover .hebd-about__category-media img {
    transform: scale(1.03);
}

.hebd-about__category-initial {
    color: var(--hebd-primary);
    font-family: var(--hebd-font-heading);
    font-size: 34px;
    font-weight: 600;
}

.hebd-about__category-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: var(--hebd-text);
}

.hebd-about__category-count {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    color: var(--hebd-text-muted);
}

/* ---- Why Healthy Eats ---- */

.hebd-about__reasons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.hebd-about-section .hebd-about__reason {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* ---- Brand band ---- */

.hebd-about__brand {
    background: #EDF5EC;
}

.hebd-about__brand h2 {
    font-size: clamp(28px, 3vw, 44px);
    letter-spacing: .01em;
}

.hebd-about__brand .hebd-about__media img {
    aspect-ratio: 16 / 10;
}

/* ---- Final CTA ---- */

.hebd-about__cta-band {
    padding-block: clamp(36px, 4vw, 64px);
}

.hebd-about-section .hebd-about__cta {
    padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
    border-radius: 28px;
    background: var(--hebd-primary);
    color: #fff;
    text-align: center;
}

.hebd-about__cta h2,
.hebd-about__cta p {
    color: #fff;
}

.hebd-about__cta p {
    max-width: 56ch;
    margin-inline: auto;
}

.hebd-about__cta .hebd-about__actions {
    justify-content: center;
}

/* ---- Breakpoints ---- */

@media (max-width: 1199.98px) {
    .hebd-about__categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {

    .hebd-about__steps,
    .hebd-about__values,
    .hebd-about__reasons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {

    .hebd-about__steps,
    .hebd-about__values,
    .hebd-about__reasons,
    .hebd-about__categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .hebd-about__values,
    .hebd-about__reasons {
        grid-template-columns: minmax(0, 1fr);
    }

    .hebd-about__step,
    .hebd-about__value {
        padding: 22px 18px;
    }

    .hebd-about__actions .hebd-about__btn .elementor-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hebd-about__media img,
    .hebd-about__value,
    .hebd-about__category-media img {
        transition: none;
    }

    .hebd-about__media:hover img,
    .hebd-about__value:hover,
    .hebd-about__category:hover .hebd-about__category-media img {
        transform: none;
    }
}


/* ------------------------------------------------------------------ */
/* Elementor widget shims                                              */
/*                                                                     */
/* The page is built from Elementor widgets, so these rules attach the  */
/* approved treatment to the markup those widgets render. Everything    */
/* else - text, images, links, order - is edited in Elementor.          */
/* ------------------------------------------------------------------ */

/* The site button: same shape, colour and weight as the homepage's
   "SEE ALL". .see-btn (style.css) carries the fill; these rules only size it
   for this page and describe the outlined variant. */
/* Elementor puts the widget's classes on the wrapper, so the site button's
   look is stated here for the link itself. Same values as .see-btn in
   style.css - the homepage's "SEE ALL". */
.hebd-about-section .hebd-about__btn .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 39px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--hebd-font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 34px;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.hebd-about-section .hebd-about__btn .elementor-button:hover,
.hebd-about-section .hebd-about__btn .elementor-button:focus-visible {
    background-color: var(--secondery-color);
    border-color: var(--secondery-color);
    color: #fff;
}

.hebd-about-section .hebd-about__btn--ghost .elementor-button {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hebd-about-section .hebd-about__btn--ghost .elementor-button:hover,
.hebd-about-section .hebd-about__btn--ghost .elementor-button:focus-visible {
    background-color: var(--primary-color);
    color: #fff;
}


/* Images keep the card treatment the design uses. */
.hebd-about-section .hebd-about__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    transition: transform .5s ease;
}

.hebd-about-section.hebd-about__hero .hebd-about__media img {
    aspect-ratio: 5 / 4;
}

.hebd-about-section.hebd-about__brand .hebd-about__media img {
    aspect-ratio: 16 / 10;
}

.hebd-about-section .hebd-about__media:hover img {
    transform: scale(1.02);
}

/* Value and benefit cards are icon boxes. */
.hebd-about-section .hebd-about__value .elementor-icon-box-wrapper,
.hebd-about-section .hebd-about__reason .elementor-icon-box-wrapper {
    text-align: left;
}

.hebd-about-section .hebd-about__value .elementor-icon,
.hebd-about-section .hebd-about__reason .elementor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--hebd-soft);
    color: var(--hebd-primary);
    fill: var(--hebd-primary);
    font-size: 20px;
}

.hebd-about-section .hebd-about__value .elementor-icon-box-title,
.hebd-about-section .hebd-about__reason .elementor-icon-box-title {
    margin: 16px 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hebd-text);
}

.hebd-about-section .hebd-about__reason .elementor-icon-box-title {
    margin-top: 0;
}

.hebd-about-section .hebd-about__value .elementor-icon-box-description,
.hebd-about-section .hebd-about__reason .elementor-icon-box-description {
    margin: 0;
    color: var(--hebd-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.hebd-about-section .hebd-about__value {
    padding: 30px 26px;
    border-radius: 20px;
    background: var(--hebd-surface);
    border: 1px solid var(--hebd-line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hebd-about-section .hebd-about__value:hover {
    transform: translateY(-3px);
    box-shadow: var(--hebd-shadow-card);
}

.hebd-about-section .hebd-about__step {
    padding: 28px 24px;
    border-radius: 20px;
    background: var(--hebd-surface);
    border: 1px solid var(--hebd-line);
}

.hebd-about-section .hebd-about__step .hebd-about__step-no,
.hebd-about-section .hebd-about__step-no .elementor-heading-title {
    color: var(--hebd-primary);
    font-family: var(--hebd-font-heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.hebd-about-section .hebd-about__cta {
    padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
    border-radius: 28px;
    background: var(--hebd-primary);
    text-align: center;
    align-items: center;
}

.hebd-about-section .hebd-about__cta .elementor-heading-title,
.hebd-about-section .hebd-about__cta .elementor-widget-text-editor,
.hebd-about-section .hebd-about__cta p {
    color: #fff;
}

.hebd-about-section.hebd-about__cta-band .hebd-about__btn .elementor-button {
    background-color: #fff;
    border-color: #fff;
    color: var(--hebd-primary-dark);
}

.hebd-about-section.hebd-about__cta-band .hebd-about__btn--ghost .elementor-button {
    background-color: transparent;
    border-color: rgba(255, 255, 255, .75);
    color: #fff;
}

.hebd-about-section.hebd-about__cta-band .hebd-about__btn .elementor-button:hover,
.hebd-about-section.hebd-about__cta-band .hebd-about__btn .elementor-button:focus-visible {
    background-color: var(--hebd-soft);
    border-color: var(--hebd-soft);
    color: var(--hebd-primary-dark);
}

/* The head block keeps its measure and, in the centred variant, its alignment. */
.hebd-about-section .hebd-about__head--center {
    align-items: center;
    text-align: center;
}
