/* Case Study - Curaleaf International */
.curaleaf {
    box-sizing: border-box;
    width: 100%;
    max-width: 1330px;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 0px;
    background-color: #191716;
}

/* Full 1330px with no side padding when there's room; below that, 40px
   either side of the whole block. Overrides the shared 20px .uc-section
   padding for this shortcode only. */
@media (max-width: 1329px) {
    .curaleaf.uc-section {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Vertical rhythm between blocks lives here, not on the blocks themselves,
   so any optional block can be omitted cleanly: 66px between blocks, with
   About -> first gallery and Challenge -> Solution paired tighter at 48px. */
.curaleaf > * {
    margin-top: 66px;
}

.curaleaf > :first-child {
    margin-top: 0;
}

.curaleaf > .curaleaf-about + .curaleaf-gallery,
.curaleaf > .curaleaf-challenge + .curaleaf-solution {
    margin-top: 48px;
}

.curaleaf > .curaleaf-hero {
    margin-top: 32px;
}

.curaleaf > .curaleaf-hero + * {
    margin-top: 40px;
}

.curaleaf-heading {
    color: #fcfcfc !important;
    font-size: 2.5rem !important;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.022em;
    margin: 0 0 12px;
}

.curaleaf-subheading {
    color: #c4d94c !important;
    font-size: 1.5rem !important;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.022em;
    margin: 0;
}

/* Radius on the wrapper (clipped) and the img itself, both !important -
   Elementor's kit image styles otherwise reset it to square corners. */
.curaleaf-hero,
.curaleaf-wide,
.curaleaf-gallery-item {
    overflow: hidden;
    border-radius: 10px !important;
}

.curaleaf-hero img,
.curaleaf-wide img,
.curaleaf-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px !important;
}

.curaleaf-hero img {
    aspect-ratio: 1184 / 300;
    object-position: 50% 39%;
}

.curaleaf-wide img {
    aspect-ratio: 1184 / 400;
}

.curaleaf-section-heading {
    color: #fcfcfc !important;
    font-size: 2rem !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.022em;
    margin: 0 0 16px;
}

.curaleaf-body-text {
    color: #fcfcfc !important;
    font-size: 1.25rem !important;
    font-weight: 500;
    line-height: 1.3;
}

.curaleaf-body-text p {
    margin: 0 0 1.3em;
}

.curaleaf-body-text p:last-child {
    margin-bottom: 0;
}

/* Sub-headings inside a section (Phase One) sit tight on their paragraph. */
.curaleaf-body-text h3 {
    color: #fcfcfc !important;
    font-size: 1.375rem !important;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0;
}

.curaleaf-about-row {
    display: grid;
    grid-template-columns: minmax(0, 777px) 269px;
    justify-content: space-between;
    gap: 40px;
    align-items: start;
}

.curaleaf-deliverables-label {
    display: block;
    color: #c4d94c !important;
    font-size: 1rem !important;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.curaleaf-deliverables-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.curaleaf-deliverables-list li {
    color: #fcfcfc !important;
    font-size: 1rem !important;
    font-weight: 400;
    line-height: 2;
    text-decoration: underline;
    text-decoration-thickness: 4.5%;
    text-transform: capitalize;
}

/* Links to the service pages: inherit the list styling so Elementor's
   global link colours don't win, accent colour on hover. */
.curaleaf-deliverables-list a {
    color: inherit !important;
    text-decoration: inherit !important;
    text-decoration-thickness: inherit !important;
    transition: color 0.2s ease;
}

.curaleaf-deliverables-list a:hover,
.curaleaf-deliverables-list a:focus-visible {
    color: #c4d94c !important;
}

.curaleaf-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.curaleaf-gallery-item img {
    aspect-ratio: 1 / 1;
}

/* Image inset on a solid panel: 60px sides / 64px top at full size
   (as % of width, so it scales), flush to the bottom edge. */
.curaleaf-gallery-item.is-panel {
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 1 / 1;
    padding: 11.15% 10.45% 0;
}

.curaleaf-gallery-item.is-panel img {
    aspect-ratio: 454 / 511;
    object-position: top center;
    border-radius: 10px 10px 0 0 !important;
}

.curaleaf-testimonial {
    box-sizing: border-box;
    margin: 35px 0 0 !important;
    padding: 42px 47px 41px !important;
    border: 1px solid #c4d94c !important;
    border-radius: 10px;
    background: none !important;
}

.curaleaf-testimonial-quote {
    max-width: 1070px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #fcfcfc !important;
    font-size: 1.5rem !important;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

.curaleaf-testimonial-quote strong {
    font-weight: 700;
}

.curaleaf-testimonial-cite {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    color: #c4d94c !important;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.curaleaf-testimonial-name {
    font-size: 1.25rem !important;
    font-weight: 700;
}

.curaleaf-testimonial-role {
    font-size: 1.125rem !important;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .curaleaf-about-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .curaleaf-testimonial {
        padding: 32px 28px !important;
    }
    .curaleaf-testimonial-quote {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .curaleaf.uc-section {
        padding: 40px 20px;
    }
    .curaleaf > * {
        margin-top: 40px;
    }
    .curaleaf > .curaleaf-about + .curaleaf-gallery,
    .curaleaf > .curaleaf-challenge + .curaleaf-solution {
        margin-top: 32px;
    }
    .curaleaf > .curaleaf-hero {
        margin-top: 24px;
    }
    .curaleaf > .curaleaf-hero + * {
        margin-top: 32px;
    }
    .curaleaf-heading {
        font-size: 1.75rem !important;
    }
    .curaleaf-subheading {
        font-size: 1.25rem !important;
    }
    .curaleaf-section-heading {
        font-size: 1.5rem !important;
    }
    .curaleaf-body-text {
        font-size: 1.05rem !important;
    }
    .curaleaf-body-text h3 {
        font-size: 1.15rem !important;
    }
    .curaleaf-hero img {
        aspect-ratio: 16 / 9;
    }
    .curaleaf-wide img {
        aspect-ratio: 4 / 3;
    }
    .curaleaf-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .curaleaf-testimonial {
        padding: 24px 20px !important;
    }
    .curaleaf-testimonial-quote {
        font-size: 1.125rem !important;
    }
    .curaleaf-testimonial-cite {
        margin-top: 24px;
    }
    .curaleaf-testimonial-name {
        font-size: 1rem !important;
    }
    .curaleaf-testimonial-role {
        font-size: 0.875rem !important;
    }
}
