/*
* ADIKIA Website 2025
* CSS Styles
*/

/* === DESCRIPTION === */
/* .description p {
    color: var(--color-text);
}

.description hr {
    width: 50%;
    height: 1px;
    border: 0;
    background-color: var(--color-secondary);
}
 */


/* === HISTORY === */

.history {
    padding: 6.829rem 0 4.656rem 0;
    /* margin-top: 0;
    padding-top: 0;
    margin-bottom: 44px; */
}

.history h2 {
    text-transform: uppercase;
    color: var(--color-accent1);
}


/* === HISTORY TIMELINE BUTTON === */

.history details {
    margin: 5.588rem 1.035rem 1.035rem 0rem;
}

.history details summary {
    background-color: var(--color-accent1);
    color: var(--color-white);
    font-weight: var(--font-weight-bold);

    display: inline-block;
    text-decoration: none;
    text-align: left;
    text-transform: uppercase;

    margin: 0.4139rem 0 0 0;
    padding: 2.587rem 3.518rem;
    border-radius: 5.17rem;
    font-size: var(--font-size-button);
    letter-spacing: +.04rem;

    cursor: pointer;
    list-style: none;
    /* remove default arrow */

    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.history details summary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Add custom arrow */
.history details summary::after {
    content: "❯";
    font-weight: var(--font-weight-regular);
    font-size: 1.1em;
    display: inline-block;
    margin: 0 1.656rem 0 3.311rem;
    transform: rotate(90deg) scaleY(0.8);
    transition: transform 0.5s ease;
}

/* Rotate arrow when open */
.history details[open] summary::after {
    transform: rotate(270deg);
}




/* === HISTORY TIMELINE === */

.history .timeline {
    padding-top: 0;
    padding-bottom: 0;
    overflow: auto hidden;
    /* Match medias section scrollbar behavior */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: color-mix(in srgb, var(--color-accent1) 75%, transparent) transparent;

    /* max-height: 0; */
    /* transition: max-height 0.5s ease, padding 0.5s ease; */
}

/* WebKit scrollbar – match medias section */
.history .timeline::-webkit-scrollbar {
    height: 0.83rem;
}

.history .timeline::-webkit-scrollbar-track {
    background: transparent;
}

.history .timeline::-webkit-scrollbar-thumb {
    /* background: color-mix(in srgb, var(--color-accent1) 50%, transparent); */
    border-radius: 999px;
}

.history details[open]+.timeline {
    /* max-height: 280px; */
}

.history .timeline img {
    margin: 2rem 0;
    min-width: 120rem;
    width: 100%;
}


/*
.history .timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: clamp(12px, 1.2vw, 24px);
    padding: 36px clamp(8px, 2vw, 24px);
    height: clamp(180px, 28vw, 260px);
    background: var(--color-pink);
    border-radius: 8px;
    overflow: hidden;
}

.history .timeline::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    background-image: repeating-linear-gradient(90deg,
            transparent 0 24px,
            var(--color-white) 24px 140px);
}

.history .timeline-item {
    position: relative;
    flex: 1 1 0;
    min-width: 110px;
    text-align: center;
}

.history .timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(18px, 2.2vw, 26px);
    height: clamp(18px, 2.2vw, 26px);
    background: var(--color-dark);
    border-radius: 50%;
    z-index: 1;
}

.history .timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-year);
    line-height: 1;
    color: var(--color-accent1);
    letter-spacing: 1px;
}

.history .timeline-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 220px;
    font-size: var(--font-size-subtext);
    line-height: 1.25;
    color: var(--color-dark);
}

.history .timeline-content a {
    color: var(--color-dark);
    text-decoration: none;
    border-bottom: 2px solid rgba(22, 64, 80, .25);
}

.history .timeline-content a:hover {
    border-bottom-color: currentColor;
}

.history .timeline-item:nth-child(odd) .timeline-year {
    top: 0;
}

.history .timeline-item:nth-child(odd) .timeline-content {
    top: 45px;
}

.history .timeline-item:nth-child(even) .timeline-year {
    bottom: 0;
}

.history .timeline-item:nth-child(even) .timeline-content {
    bottom: 45px;
}

@media (max-width: 720px) {
    .history .timeline {
        overflow-x: auto;
        scrollbar-width: thin;
        height: 220px;
        gap: 32px;
    }

    .history .timeline-item {
        min-width: 160px;
    }
} */


/* === NUMBERS === */
.numbers {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding-bottom: 2rem;
}

.numbers h2 {
    color: var(--color-pink);
    text-transform: uppercase;
    margin: 0;
}

.numbers .key-figures {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    margin: 2rem 0 4.967rem 0;
    list-style: none;
    /* padding: 0 60px 0 0; */
}

.numbers .key-figures .figure:nth-child(2) {
    margin-left: 2.276rem;
}

.numbers .figure {
    min-width: 31.04rem;
    width: 30%;
}

.numbers .figure img {
    width: 100%;
}


/* === TESTIMONIES === */
.testimonies {
    background-color: var(--color-accent1);
    color: var(--color-white);
}

.testimonies h2 {
    color: var(--color-pink);
}

.testimonies .container {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: center;
    gap: clamp(2rem, 4.167vw, 6.209rem);
}

.testimonies .left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    min-width: 31.04rem;
}

.testimonies p {
    margin-bottom: 8.071rem;
    /* padding-right: 110px; */
}

.testimonies a {
    /* margin-bottom: 52px; */
}

.testimonies .right {
    flex: 1;
    align-self: center;
    width: 100%;
    max-width: 51.74rem;
}

.testimonies svg {
    width: 100%;
}


/* === FAMILIES === */
.families {
    background-color: var(--color-pink);
}

.families h2 {
    color: var(--color-accent1);
}

/* === VIDEO === */

.video {
    background-color: var(--color-dark);
}

.video h2 {
    color: var(--color-pink);
}

.video p {
    color: var(--color-white);
}

.video .video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 6.209rem auto;
    border: 0;
}

.video .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* === MEDIA === */
.media {
    background-color: var(--color-accent1);
    color: var(--color-white);
    /* padding-bottom: 60px; */
}

.media h2 {
    color: var(--color-pink);
}

.media .media-logos-wrap {
    position: relative;
}

/* edge fades hint */
.media .fades::before,
.media .fades::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6rem;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(90deg, var(--color-accent1) 50%, rgba(49, 125, 138, 0) 90%);
    transform: scale(1.01);
    transition: opacity 0.3s ease;
}

.media .fades::after {
    inset: 0 0 0 auto;
    background: linear-gradient(270deg, var(--color-accent1) 50%, rgba(49, 125, 138, 0) 90%);
}

.media .fades[data-at-start="true"]::before {
    opacity: 0;
}

.media .fades[data-at-end="true"]::after {
    opacity: 0;
}


.media .media-logos {
    display: flex;
    align-items: center;
    gap: 6.209rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 4rem 3.75rem 4rem;
    margin: 0 0 2.75rem 0;
    /* scroll-snap-type: x mandatory; */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: color-mix(in srgb, var(--color-pink) 75%, transparent) transparent;
}

.media .media-logos:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .5) inset;
    border-radius: 0.83rem;
}

/* WebKit scrollbar */
.media .media-logos::-webkit-scrollbar {
    height: 0.83rem;
}

.media .media-logos::-webkit-scrollbar-track {
    background: transparent;
}

.media .media-logos::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .45);
    border-radius: 999px;
}

/* items */
.media .media-logos a {
    opacity: 0.53;
    transition: transform var(--transition), opacity var(--transition);
    flex: 0 0 auto;
    scroll-snap-align: end;
}

.media .media-logos a:nth-child(1) {
    padding-left: 0;
}

.media .media-logos a:hover,
.media .media-logos a:focus-visible {
    transform: scale(1.06);
    opacity: 1;
}

.media .media-logos img {
    height: 6.002rem;
    object-fit: contain;
    display: block;
}

/* arrows */
.media-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.media-btn {
    pointer-events: auto;
    position: absolute;
    border: 0;
    top: -3rem;
    width: 2rem;
    height: 100%;
    vertical-align: top;
    background: none;
    color: var(--color-white);
    opacity: .85;
    cursor: pointer;

    font-weight: var(--font-weight-regular);
    font-size: 3rem;
    display: inline-block;
    padding: 0 4rem 0 2rem;
    z-index: 10;

    transition: all 0.3s ease;
}

.media-btn.prev {
    left: -1.5rem;
}

.media-btn.next {
    right: -2rem;
}

.media-btn[disabled] {
    opacity: 0;
    visibility: hidden;
    cursor: default;
    transition: all var(--transition);
}

.media-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.media-btn:hover {
    opacity: 1;
    transform: all var(--transition);
}


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

    .media .media-logos,
    .media .media-logos a {
        scroll-behavior: auto;
        transition: none;
    }
}



/* === BOOK === */

.book .container {
    display: flex;
    flex-direction: row;
}

.book .left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
}

.book h2 {
    color: var(--color-accent1);
}

.book a.btn {
    background-color: var(--color-accent1);
    color: var(--color-white);
}

.book a.btn:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}


.book .right {
    display: flex;
    justify-content: center;
    width: 100%;
}

.book img {
    max-height: clamp(28.97rem, 40vw, 51.74rem);
    /* margin-right: 40px; */
}


/* === SUPPORT-US === */
.support-us {
    background:
        linear-gradient(to right,
            var(--color-dark) 0%,
            rgba(54, 130, 151, 0) 100%),
        url('../img/child.webp') no-repeat center center / cover;
    background-blend-mode: multiply;

    background-repeat: no-repeat;
    background-position-x: 55%;
    background-position-y: 24%;
    background-size: cover;
    color: var(--color-white);
}

.support-us .wrapper {
    display: flex;
}

.support-us .left {
    flex: 1;
}

.support-us .right {
    flex: 1;
}

.support-us h2 {
    color: var(--color-pink);
    margin-top: 8.278rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.25);
}

.support-us p {
    margin-bottom: 10.35rem;
}

.support-us .btn {
    margin: 0 4.139rem 0 0;
}

.support-us .btn.donate {
    color: var(--color-dark);
    background-color: var(--color-pink);
}

.support-us .btn.subscribe {
    color: var(--color-white);
    background-color: var(--color-accent1);
}

.support-us .btn:hover {
    color: var(--color-dark);
    background-color: var(--color-white);
}



/* === CONTACT === */
.contact {
    background-color: var(--color-accent1);
    color: var(--color-white);
}

.contact h2 {
    color: var(--color-pink);
}


.contact details summary {
    background-color: var(--color-pink);
    color: var(--color-dark);
    font-weight: var(--font-weight-bold);

    display: inline-block;
    text-decoration: none;
    text-align: left;
    text-transform: uppercase;

    margin: 0 0 2rem 0;
    padding: 1.5rem 3.518rem;
    border-radius: 5.17rem;
    font-size: var(--font-size-button);
    letter-spacing: +.04rem;

    cursor: pointer;
    list-style: none;

    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.contact details summary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Add custom arrow */
.contact details summary::after {
    content: "❯";
    font-weight: var(--font-weight-regular);
    font-size: 1.1em;
    display: inline-block;
    margin: 0 1.656rem 0 3.311rem;
    transform: rotate(90deg) scaleY(0.8);
    transition: transform 0.5s ease;
}

/* Rotate arrow when open */
.contact details[open] summary::after {
    transform: rotate(270deg);
}

.contact details[open]+form {
    max-height: 165.6rem;
    /* padding-top: 36px;
  padding-bottom: 36px; */
}





/* === Contact Form === */
.contact form {
    margin: 0 auto 0 auto;

    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: max-height 0.7s ease;
}

.contact .form-group {
    margin: 0 0 2.897rem 0;
}

.contact .form-group.form-info {
    margin-bottom: 0.8278rem;
}

.contact label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-pink);
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    margin-bottom: 1.449rem;
}

/* Radio groups as push buttons */
.contact .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.863rem 2.276rem;
}

.contact .radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact .radio-group label {
    display: inline-block;
    padding: 1.449rem 2.897rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-white) 25%, var(--color-accent1) 75%);
    color: var(--color-dark);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-button);
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.contact .radio-group label:hover,
.contact .radio-group input[type="radio"]:checked+label {
    background: var(--color-white);
    color: var(--color-dark);
}

.contact .radio-group input[type="radio"]:focus-visible+label {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* Fields layout */
.contact .form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.3rem;
}

.contact .form-fields .form-group {
    /* margin-bottom: 0; */
}

.contact .form-fields .form-first-name {
    flex: 1 1 45%;
    min-width: 26rem;
}

.contact .form-fields .form-last-name {
    flex: 1 1 45%;
    min-width: 26rem;
}

.contact .form-fields .form-email {
    flex: 1 1 45%;
    min-width: 26rem;
}

.contact .form-fields .form-phone {
    flex: 1 1 45%;
    min-width: 15.2rem;
}

.contact .form-fields .form-postal-code {
    flex: 1 1 20%;
    min-width: 15.5rem;
    max-width: 26rem;
}

.contact .form-fields .form-message {
    flex: 1 1 100%;
}

/* Inputs */
.contact input[type="text"],
.contact input[type="email"],
.contact input[type="tel"],
.contact textarea {
    width: 100%;
    padding: 1.863rem 2.276rem;
    border: none;
    border-radius: 3.31rem;
    font-family: var(--font-family);
    font-size: var(--font-size-text);
    color: var(--color-dark);
    background: var(--color-white);
    transition: all var(--transition);
}

.contact input::placeholder,
.contact textarea::placeholder {
    color: color-mix(in srgb, var(--color-dark) 45%, var(--color-white) 55%);
}

.contact input[disabled],
.contact textarea[disabled],
.contact select[disabled] {
    background: color-mix(in srgb, var(--color-white) 80%, var(--color-dark) 20%);
    color: color-mix(in srgb, var(--color-dark) 65%, var(--color-white) 35%);
    cursor: not-allowed;
}

.contact button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact textarea {
    min-height: 26.9rem;
    border: none;
    resize: vertical;
}

/* Submit button: reuse .btn colors and hover */
.contact button.btn[type="submit"] {
    margin-top: 0;
    border: none;
}

.contact input:focus,
.contact textarea:focus,
.contact button:focus {
    border: none;
    box-shadow: none;
    outline: none;
    /* background-color: #ebf8fd; */
    /* box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 0 0 5px #2a7386; */
}

/* Disabled state if needed */
.contact .form-fields.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.contact .label-required {
    margin: 0 0 3rem 0;
    font-size: var(--font-size-subtext);
}
