/* ============================================================
   CEIRIOS ELEMENTOR WIDGETS — Shared Stylesheet
   Arrow Button + Section Header
   ============================================================ */


/* ────────────────────────────────────────────
   ARROW BUTTON
──────────────────────────────────────────── */
.ceirios-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 5px 8px 5px 22px;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.35s ease,
        color            0.35s ease,
        border-color     0.35s ease,
        box-shadow       0.4s  ease,
        transform        0.3s  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ceirios-btn--icon-left {
    flex-direction: row-reverse;
    padding: 5px 22px 5px 8px;
}

/* Arrow circle */
.ceirios-btn__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    flex-shrink: 0;
    transition:
        background-color 0.35s ease,
        color            0.35s ease,
        transform        0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ceirios-btn__arrow svg {
    width: 18px;
    height: 18px;
}
.ceirios-btn__text {
    position: relative;
    z-index: 1;
}

/* Hover effects */
.ceirios-btn--hover-gentle-rise:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(42, 115, 111, 0.25);
}
.ceirios-btn--hover-gentle-rise:hover .ceirios-btn__arrow {
    background: rgba(255, 255, 255, 0.4);
}

.ceirios-btn--hover-warm-glow:hover {
    box-shadow:
        0 0 0 3px rgba(42, 115, 111, 0.12),
        0 2px 12px rgba(42, 115, 111, 0.2);
}
.ceirios-btn--hover-warm-glow:hover .ceirios-btn__arrow {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.06);
}

.ceirios-btn--hover-soft-pulse:hover {
    animation: ceirios-pulse 1.8s ease-in-out infinite;
}
.ceirios-btn--hover-soft-pulse:hover .ceirios-btn__arrow {
    background: rgba(255, 255, 255, 0.4);
}
@keyframes ceirios-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(42, 115, 111, 0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(42, 115, 111, 0);   }
}

.ceirios-btn--hover-arrow-nudge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(42, 115, 111, 0.18);
}
.ceirios-btn--hover-arrow-nudge:hover .ceirios-btn__arrow {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.4);
}
.ceirios-btn--icon-left.ceirios-btn--hover-arrow-nudge:hover .ceirios-btn__arrow {
    transform: translateX(-3px);
}

.ceirios-btn--hover-none:hover .ceirios-btn__arrow {
    background: rgba(255, 255, 255, 0.35);
}

/* Focus / accessibility */
.ceirios-btn:focus-visible {
    outline: 2px solid #2a736f;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(42, 115, 111, 0.15);
}


/* ────────────────────────────────────────────
   SECTION HEADER
──────────────────────────────────────────── */
.ceirios-sh {
    display: flex;
    flex-direction: column;
}

/* Tag wrap — justify-content driven by --sh-tag-align (set by the Alignment preset control) */
.ceirios-sh__tag-wrap {
    display: flex;
    justify-content: var(--sh-tag-align, center);
    line-height: 1;
}

/* Tag badge */
.ceirios-sh__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 14px;
    border-radius: 100px;
    background-color: #C97878;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    transition: background-color 0.3s ease;
}

/* Dot indicator */
.ceirios-sh__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    flex-shrink: 0;
}

.ceirios-sh__tag-text {
    color: #ffffff;
}

/* Heading */
.ceirios-sh__heading {
    font-family: 'El Messiri', serif;
    font-weight: 600;
    color: #1D2928;
    margin: 0;
    line-height: 1.15;
}

/* Subtitle */
.ceirios-sh__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #4A5654;
    margin: 0;
    line-height: 1.6;
}


/* ────────────────────────────────────────────
   ABOUT FEATURE
──────────────────────────────────────────── */
.caf-section {
    border-radius: 32px;
    background-color: #C97878;
    padding: 60px;
    overflow: hidden;
}

.caf-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.caf-section--img-left .caf-inner {
    flex-direction: row-reverse;
}

/* Card */
.caf-card {
    flex: 1;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
}

/* Tag */
.caf-tag-wrap {
    margin-bottom: 16px;
}

.caf-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 14px;
    border-radius: 100px;
    background-color: #C97878;
}

.caf-tag__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    flex-shrink: 0;
}

.caf-tag__text {
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

/* Heading */
.caf-heading {
    font-family: 'El Messiri', serif;
    font-size: 36px;
    font-weight: 600;
    color: #1D2928;
    margin: 0 0 16px;
    line-height: 1.15;
}

/* Body */
.caf-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #4A5654;
    line-height: 1.6;
    margin-bottom: 24px;
}

.caf-body p { margin: 0; }

/* Icon list */
.caf-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.caf-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.caf-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #2a736f;
    color: #ffffff;
    flex-shrink: 0;
    font-size: 14px;
}

.caf-list__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.caf-list__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1D2928;
}

/* Button */
.caf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 5px 8px 5px 22px;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    line-height: 1.4;
    background-color: #2a736f;
    color: #ffffff;
    transition:
        background-color 0.35s ease,
        color            0.35s ease,
        box-shadow       0.4s  ease,
        transform        0.3s  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.caf-btn__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    flex-shrink: 0;
    transition:
        background-color 0.35s ease,
        transform        0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.caf-btn__arrow svg {
    width: 18px;
    height: 18px;
}

.caf-btn--hover-gentle-rise:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(42, 115, 111, 0.25);
}
.caf-btn--hover-gentle-rise:hover .caf-btn__arrow {
    background: rgba(255, 255, 255, 0.4);
}

.caf-btn--hover-warm-glow:hover {
    box-shadow:
        0 0 0 3px rgba(42, 115, 111, 0.12),
        0 2px 12px rgba(42, 115, 111, 0.2);
}
.caf-btn--hover-warm-glow:hover .caf-btn__arrow {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.06);
}

.caf-btn--hover-soft-pulse:hover {
    animation: caf-pulse 1.8s ease-in-out infinite;
}
.caf-btn--hover-soft-pulse:hover .caf-btn__arrow {
    background: rgba(255, 255, 255, 0.4);
}
@keyframes caf-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(42, 115, 111, 0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(42, 115, 111, 0);   }
}

.caf-btn--hover-arrow-nudge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(42, 115, 111, 0.18);
}
.caf-btn--hover-arrow-nudge:hover .caf-btn__arrow {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.4);
}

.caf-btn:focus-visible {
    outline: 2px solid #2a736f;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(42, 115, 111, 0.15);
}

/* Image column */
.caf-image-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caf-image-wrap {
    --caf-ring-color: rgba(255, 255, 255, 0.5);
    --caf-ring-width: 6px;
    box-shadow: 0 0 0 var(--caf-ring-width) var(--caf-ring-color);
    border-radius: 50%;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
}


.caf-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .caf-section {
        padding: 32px 24px;
        border-radius: 20px;
    }
    .caf-inner,
    .caf-section--img-left .caf-inner {
        flex-direction: column;
    }
    .caf-image-wrap {
        max-width: 280px;
    }
}


/* ────────────────────────────────────────────
   PHOTO CARDS
──────────────────────────────────────────── */
.cpc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cpc-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: block;
    text-decoration: none;
    cursor: default;
}

a.cpc-card {
    cursor: pointer;
}

.cpc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a.cpc-card:hover .cpc-card__img {
    transform: scale(1.04);
}

/* Gradient overlay — bottom-to-top, teal color */
.cpc-card__overlay {
    --cpc-overlay-color: #2a736f;
    --cpc-overlay-opacity: 0.88;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(
        to top,
        color-mix(in srgb, var(--cpc-overlay-color) calc(var(--cpc-overlay-opacity) * 100%), transparent) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .cpc-card__overlay {
        background: linear-gradient(
            to top,
            rgba(42, 115, 111, 0.88) 0%,
            transparent 100%
        );
    }
}

/* Label */
.cpc-card__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 20px 20px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    .cpc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cpc-grid {
        grid-template-columns: 1fr;
    }
}
