/* =========================================================
   CUBE AROMA | COMMERCIAL PARTNERSHIP
   Standalone, scoped, RTL — Desktop / Tablet / Mobile
   ========================================================= */

/* 00 — Base and design tokens */
.cube-com {
    --com-ink: #4D4C50;
    --com-mid: #5C5D60;
    --com-line: #EAD6C9;
    --com-beige: #F8F1E8;
    --com-paper: #FFFDFB;

    color: var(--com-ink);
    background: var(--com-paper);
    direction: rtl;
    font: 400 14px/1.8 Cairo, Arial, sans-serif;
}

.cube-com * {
    box-sizing: border-box;
}

.cube-com a {
    text-decoration: none;
}

.cube-com-container {
    width: min(100% - 48px, 1320px);
    margin-inline: auto;
}

.cube-com h1,
.cube-com h2,
.cube-com h3,
.cube-com p {
    margin-top: 0;
}

.cube-com h2 {
    margin-bottom: 15px;
    color: #302f31;
    font-size: clamp(23px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.cube-com-kicker,
.cube-com-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--com-mid);
    font-size: 12px;
    letter-spacing: .04em;
    text-align: center;
}

/* 01 — Hero: matching Advertise page aesthetic, no photography */
/* 01 — HERO BANNER */
.cube-com-hero {
    background-image: url("https://cubearoma.com/wp-content/uploads/2026/11/323ad064-a905-4bb3-95db-1bc3b3cc4668.png");
    background-color: #F5E0D2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;

    min-height: 390px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.cube-com-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1220px);
    margin-inline: auto;
    padding: 56px 0;
    text-align: right;
}

.cube-com-hero .cube-com-eyebrow {
    text-align: right;
}

.cube-com-hero h1 {
    max-width: 780px;
    margin-bottom: 14px;
    color: #302f31;
    font-size: clamp(29px, 3.1vw, 44px);
    font-weight: 600;
    line-height: 1.55;
}

.cube-com-hero p {
    max-width: 800px;
    margin-bottom: 24px;
    color: var(--com-mid);
    font-size: 14px;
    line-height: 2;
}

.cube-com-button,
.cube-com .cube-com-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 46px;
    padding: 10px 27px;
    border: 1px solid #4D4C50 !important;
    border-radius: 6px;
    background: #4D4C50 !important;
    color: #fff !important;
    font: 600 13px Cairo, Arial, sans-serif;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.cube-com-button:hover,
.cube-com .cube-com-submit:hover {
    background: #FFFDFB !important;
    color: #4D4C50 !important;
}

.cube-com-button:focus-visible,
.cube-com .cube-com-submit:focus-visible {
    outline: 2px solid #4D4C50;
    outline-offset: 3px;
}

/* 02 — Benefits: section background matches the cards' warm neutral palette */
.cube-com-benefits {
    padding: 58px 0 60px;
    background: #F8F6F4; /* CHANGED: previously #FFFDFB */
}

.cube-com-section-lead {
    max-width: 920px;
    margin: 0 auto 28px;
    color: #68666a;
    font-size: 13px;
    line-height: 2;
    text-align: center;
}

.cube-com-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.cube-com-benefit-card {
    min-height: 190px;
    padding: 25px 24px 23px;
    border: 1px solid #eee9e4;
    border-radius: 11px;
    background: linear-gradient(145deg, #faf8f6, #f6f2ee);
    text-align: center;
}

.cube-com-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #E4E5E6;
    color: #4D4C50;
}

.cube-com-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cube-com-benefit-card h3 {
    margin: 0 0 8px;
    color: #333235;
    font-size: 15px;
    font-weight: 600;
}

.cube-com-benefit-card p {
    margin: 0;
    color: #646166;
    font-size: 12px;
    line-height: 1.9;
}

/* 03 — Partnership journey */
.cube-com-journey {
    padding: 53px 0 63px;
    background: #F8F1E8;
}

.cube-com-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 36px;
}

.cube-com-steps::before {
    content: "";
    position: absolute;
    top: 28px;
    right: 12%;
    left: 12%;
    height: 1px;
    background: #BCBBC0;
}

.cube-com-step {
    position: relative;
    text-align: center;
}

.cube-com-step-number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: #4D4C50;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    box-shadow: 0 0 0 6px #F8F1E8;
}

.cube-com-step h3 {
    margin: 0;
    color: #4D4C50;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

/* 04 — Full-width application form: no side image */
.cube-com-apply {
    padding: 22px 0 65px;
    background: #F8F1E8;
    scroll-margin-top: 85px;
}

.cube-com-form-heading {
    margin: 0 0 21px;
    text-align: center;
}

.cube-com-form-heading p {
    color: #777179;
    font-size: 13px;
}

.cube-com-form-panel {
    max-width: 1120px;
    margin: auto;
    padding: 34px 38px;
    border: 1px solid #EAD6C9;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #fefcfa);
    box-shadow: 0 5px 24px rgba(77, 76, 80, .045);
}

.cube-com-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

.cube-com-form-subheading {
    grid-column: 1 / -1;
    margin: 8px 0 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece5df;
    color: #4D4C50;
    font-size: 17px;
    font-weight: 600;
}

.cube-com-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.cube-com-field-full {
    grid-column: 1 / -1;
}

.cube-com-field label {
    color: #373537;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

.cube-com-field b {
    color: #786354;
}

.cube-com-hint {
    color: #827d80;
    font-size: 11px;
    line-height: 1.7;
}

.cube-com-field input:not([type=checkbox]),
.cube-com-field textarea,
.cube-com-field select {
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid #ddd9d5 !important;
    border-radius: 5px;
    background: #fff !important;
    color: #333 !important;
    font: 400 13px Cairo, Arial, sans-serif;
    direction: rtl;
    box-shadow: none !important;
}

.cube-com-field textarea {
    min-height: 100px;
    resize: vertical;
}

.cube-com-field input:focus,
.cube-com-field textarea:focus,
.cube-com-field select:focus {
    outline: 2px solid #c6b3a5;
    outline-offset: 1px;
}

.cube-com-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #eee9e4;
    border-radius: 6px;
    background: #faf8f6;
}

.cube-com-checks label,
.cube-com-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
}

.cube-com-checks input,
.cube-com-consent input {
    margin-top: 5px;
    accent-color: #4D4C50;
}

.cube-com .cube-com-submit {
    width: 100%;
}

.cube-com-fineprint {
    margin: 15px 0 0;
    color: #757078;
    font-size: 11px;
    line-height: 2;
    text-align: center;
}

.cube-com-notice {
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #b7c2b5;
    border-radius: 6px;
    background: #f3f8f2;
    font-size: 13px;
}

.cube-com-notice-error {
    border-color: #bd988f;
    background: #faf1f0;
}

.cube-com-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 05 — Tablet: up to 900px */
@media (max-width: 900px) {
    .cube-com-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cube-com-hero {
        min-height: 350px;
    }

    .cube-com-form-panel {
        padding: 27px 24px;
    }
}

/* 06 — Mobile: up to 700px */
@media (max-width: 700px) {
    .cube-com-container,
    .cube-com-hero-inner {
        width: calc(100% - 28px);
    }

    .cube-com-hero {
        min-height: 0;
    }

    .cube-com-hero-inner {
        padding: 45px 4px;
    }

    .cube-com-hero h1 {
        font-size: 28px;
    }

    .cube-com-hero p {
        font-size: 12px;
    }

    .cube-com-benefits {
        padding: 36px 0;
    }

    .cube-com-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .cube-com-benefit-card {
        min-height: 0;
        padding: 18px 11px;
    }

    .cube-com-benefit-card h3 {
        font-size: 13px;
    }

    .cube-com-benefit-card p {
        font-size: 11px;
    }

    .cube-com-journey {
        padding: 38px 0;
    }

    .cube-com-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 10px;
    }

    .cube-com-steps::before {
        display: none;
    }

    .cube-com-step h3 {
        font-size: 12px;
    }

    .cube-com-apply {
        padding: 20px 0 40px;
    }

    .cube-com-form-panel {
        padding: 22px 15px;
    }

    .cube-com-form {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .cube-com-form-subheading,
    .cube-com-field-full {
        grid-column: 1 / -1;
    }

    .cube-com-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cube-com h2 {
        font-size: 23px;
    }
}

/* 07 — Small mobile: up to 380px */
@media (max-width: 380px) {
    .cube-com-benefit-grid,
    .cube-com-checks {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   08 — MOBILE HERO: ORIGINAL IMAGE, NO CROP / NO STRETCH
   Desktop remains unchanged.
   Source image dimensions: 2048 x 682 (ratio 1024 / 341)
   ========================================================= */
@media (max-width: 700px) {
    .cube-com .cube-com-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        min-height: 0;
        height: auto;
        padding: 0;
        overflow: hidden;
        background-image: none;
        background-color: #FFFDFB;
    }

    /* Full original photo at its real ratio. No clipping or distortion. */
   
/* Mobile Banner — Correct Image Proportions */

.cube-com .cube-com-hero::before {
    content: "";
    display: block;
    width: 100%;
    height: auto;

    /* Portrait mobile image */
    aspect-ratio: 4 / 5;

    flex: 0 0 auto;

    background-image: url("https://cubearoma.com/wp-content/uploads/2026/11/Professional-Handshake-at-a-Sunlit-Desk.png");

    background-size: contain;
  background-position: center 20%;
    background-repeat: no-repeat;
    background-color: #F5E0D2;
}


    .cube-com .cube-com-hero-inner {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 28px 20px 35px;
        text-align: center;
        background: #FFFDFB;
    }

    .cube-com .cube-com-hero .cube-com-eyebrow {
        margin-bottom: 10px;
        text-align: center;
        font-size: 10px;
    }

    .cube-com .cube-com-hero h1 {
        max-width: 100%;
        margin-bottom: 13px;
        font-size: clamp(24px, 6vw, 30px);
        line-height: 1.6;
        text-align: center;
        color: #302F31;
    }

    .cube-com .cube-com-hero p {
        max-width: 420px;
        margin-bottom: 22px;
        font-size: 12px;
        line-height: 2;
        text-align: center;
        color: #5C5D60;
    }

    .cube-com .cube-com-hero .cube-com-button {
        align-self: center;
        background: #4D4C50 !important;
        color: #FFFFFF !important;
        border-color: #4D4C50 !important;
    }

    .cube-com .cube-com-hero .cube-com-button:hover,
    .cube-com .cube-com-hero .cube-com-button:focus-visible {
        background: #FFFDFB !important;
        color: #4D4C50 !important;
        border-color: #4D4C50 !important;
    }
}

/* Commercial Partnership — Mobile Banner */

@media (max-width: 700px) {

    .cube-com .cube-com-hero::before {
        content: "";
        display: block;

        width: 100%;
        height: 410px;
        aspect-ratio: auto;

        flex: 0 0 410px;

        background-image: url("https://cubearoma.com/wp-content/uploads/2026/11/Professional-Handshake-at-a-Sunlit-Desk.png");
        background-size: cover !important;
      background-position: center 20%;
        background-repeat: no-repeat;
        background-color: #F5E0D2;
    }
}
