/* ==========================================
   SANOFI FONTS
========================================== */

@font-face {
    font-family: "Sanofi Sans";
    src: url("fonts/Sanofi_Sans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Sanofi Sans";
    src: url("fonts/Sanofi_Sans-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Sanofi Sans";
    src: url("fonts/Sanofi_Sans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Sanofi Serif";
    src: url("fonts/Sanofi_Serif-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Sanofi Serif";
    src: url("fonts/Sanofi_Serif-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Sanofi Serif";
    src: url("fonts/Sanofi_Serif-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
}


/* ==========================================
   RESET
========================================== */

.key-contacts,
.key-contacts * {
    box-sizing: border-box;
}


/* ==========================================
   SECTION
========================================== */

.key-contacts {
    position: relative;
    width: 100%;
    padding: 110px 0 125px;
    /* background:
        radial-gradient(
            circle at 88% 12%,
            rgba(122, 0, 230, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 5% 90%,
            rgba(35, 0, 76, 0.06),
            transparent 30%
        ),
        #F7F7F7; */

    overflow: hidden;
}


/* Decorative background element */

.key-contacts::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -210px;
    bottom: -220px;

    border: 1px solid rgba(122, 0, 230, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

.key-contacts::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -120px;
    bottom: -150px;

    border: 1px solid rgba(122, 0, 230, 0.09);
    border-radius: 50%;

    pointer-events: none;
}


/* ==========================================
   CONTAINER
========================================== */

.key-contacts-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}


/* ==========================================
   SECTION HEADING
========================================== */

.key-contacts-heading {
    max-width: 720px;
    margin-bottom: 58px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: #7A00E6;
}

.section-eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: #7A00E6;
}


.key-contacts-heading h2 {
    margin: 0;

    font-family: "Sanofi Serif", Georgia, serif;
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -2.5px;

    color: #23004C;
}

.key-contacts-heading h2 em {
    color: #7A00E6;
    font-style: italic;
}


.key-contacts-heading p {
    max-width: 580px;
    margin: 22px 0 0;

    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.65;

    color: rgba(35, 0, 76, 0.68);
}


/* ==========================================
   CONTACT GRID
========================================== */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}


/* ==========================================
   CONTACT CARD
========================================== */

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 120px;
    min-width: 120px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(35, 0, 76, 0.08);
    border-radius: 10px;
    box-shadow:0 8px 28px rgba(35, 0, 76, 0.045);
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
    opacity: 0;
    transform: translateY(28px);
}


/* Activated by JS */

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Hover */

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(122, 0, 230, 0.28);
    box-shadow:0 18px 45px rgba(35, 0, 76, 0.10);
}


/* Purple side accent */

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        180deg,
        #7A00E6,
        #23004C
    );
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s ease;
}

.contact-card:hover::before {
    transform: scaleY(1);
}


/* ==========================================
   PROFILE PHOTO
========================================== */

.contact-photo {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 46%;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #EDE6F7,
            #D8C6F0
        );
    position: relative;
}

.contact-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(35, 0, 76, 0.12)
        );
    pointer-events: none;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.contact-card:hover .contact-photo img {
    transform: scale(1.06);
}


/* ==========================================
   CONTACT INFORMATION
========================================== */

.contact-info {
    min-width: 0;
    padding: 4px 42px 4px 22px;
}


.contact-number {
    display: block;
    margin-bottom: 7px;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #7A00E6;
}


.contact-info h3 {
    margin: 0;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #23004C;
}


.contact-designation {
    margin: 7px 0 15px;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(35, 0, 76, 0.62);
}


/* ==========================================
   EMAIL
========================================== */

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    font-family: "Sanofi Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #7A00E6;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}


.contact-email:hover {
    color: #23004C;
}


.email-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(122, 0, 230, 0.08);
    font-size: 16px;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.contact-email:hover .email-icon {
    background: rgba(122, 0, 230, 0.15);
    transform: scale(1.08);
}


/* ==========================================
   ARROW
========================================== */

.contact-arrow {
    position: absolute;

    top: 22px;
    right: 22px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #F5F0FA;

    color: #7A00E6;

    font-family: Arial, sans-serif;
    font-size: 15px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.35s ease;
}


.contact-card:hover .contact-arrow {
    background: #7A00E6;
    color: #FFFFFF;
    transform: translate(2px, -2px);
}


/* ==========================================
   STAGGERED ANIMATION
========================================== */

.contact-card:nth-child(1) {
    transition-delay: 0.05s;
}

.contact-card:nth-child(2) {
    transition-delay: 0.10s;
}

.contact-card:nth-child(3) {
    transition-delay: 0.15s;
}

.contact-card:nth-child(4) {
    transition-delay: 0.20s;
}

.contact-card:nth-child(5) {
    transition-delay: 0.25s;
}

.contact-card:nth-child(6) {
    transition-delay: 0.30s;
}

.contact-card:nth-child(7) {
    transition-delay: 0.35s;
}

.contact-card:nth-child(8) {
    transition-delay: 0.40s;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .key-contacts {
        padding: 85px 0 95px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        min-height: 165px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .key-contacts {
        padding: 70px 0 80px;
    }

    .key-contacts-container {
        width: min(100% - 30px, 500px);
    }

    .key-contacts-heading {
        margin-bottom: 38px;
    }

    .key-contacts-heading h2 {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    .key-contacts-heading p {
        font-size: 15px;
    }

    .contact-card {
        min-height: 145px;
        padding: 16px;
        border-radius: 14px;
    }

    .contact-photo {
        flex: 0 0 88px;
        width: 120px;
        height: 120px;
        border-radius: 10px;
    }

    .contact-info {
        padding-left: 15px;
        padding-right: 25px;
    }

    .contact-info h3 {
        font-size: 17px;
    }

    .contact-designation {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .contact-email {
        font-size: 10.5px;
    }

    .contact-number {
        font-size: 9px;
    }

    .contact-arrow {
        top: 15px;
        right: 15px;
        width: 27px;
        height: 27px;
        font-size: 13px;
    }

}


/* ==========================================
   VERY SMALL DEVICES
========================================== */

@media (max-width: 400px) {

    .contact-photo {
        flex: 0 0 76px;
        width: 100px;
        height: 100px;
    }

    .contact-info {
        padding-left: 12px;
    }

    .contact-info h3 {
        font-size: 15px;
    }

    .contact-designation {
        font-size: 11px;
    }

    .contact-email {
        font-size: 9px;
    }

}