/*
Theme Name: CDR Theme
Theme URI: 
Author: Javier Díaz
Author URI: 
Description: Custom landing page theme for CDR consulting, built with ACF and Polylang layout.
Version: 2.0.3
Text Domain: cdr-theme

--- Custom Fonts ---
*/


@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Custom';
    src: url('assets/fonts/Helvetica.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue Custom';
    src: url('assets/fonts/HelveticaNeue-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-black: #1a1a1a;
    --text-dark: #333333;
    --text-light: #5B5B5B;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-hero: #e2e2e2;
    --accent-orange: #f26822;
    /* Approx from design */
    --accent-purple: #9b51e0;
    --accent-green: #27ae60;
    --border-color: #dddddd;

    --font-main: 'Gotham', 'Helvetica Custom', 'Helvetica Neue Custom', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

.container {
    margin: 0 auto;
    max-width: 820px;
    padding: 0 30px;
}

@media screen and (max-width: 900px) {
    .container {
        padding: 0 20px;
    }
}

.container-big {
    max-width: 950px;
    padding: 0 30px;
    margin: 0 auto;
}

.container-full {
    max-width: 100%;
    padding: 0 30px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Helvetica Neue Custom';
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

h2 {
    font-size: 65px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    display: block;
    bottom: 0px;
    left: 0;
    width: 90px;
    height: 3px;
    background-color: #C16EBA;
}

/* --- Custom Classes Based on New Layout --- */

/* Utility colors */
.bg-light {
    background-color: var(--bg-light);
}

.bg-grey {
    background-color: #e2e2e2;
}

.text-white {
    color: #ffffff;
}

.uppercase {
    text-transform: uppercase;
}

.mt-2 {
    margin-top: 10px;
}

.mt-4 {
    margin-top: 20px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/*Menu*/

.menu {
    /*dos columnas para el menu*/
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-width: 310px;
    width: 100%;
}

.menu-item {
    font-size: 14px;
    font-weight: 400;
}

.nav-wrapper nav {
    display: flex;
    justify-content: flex-end;
}

/* Typography */
.section-title {
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-desc {
    margin: 0 auto 40px;
    font-size: 20px;
    text-align: left;
    font-family: 'Helvetica Neue Custom';
}

.section-desc p {
    margin-bottom: 40px
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 460px;
    display: flex;
    align-items: flex-start;
    padding-top: 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: -2;

}

/*
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}*/

.hero-content {
    color: #ffffff;
    position: relative;
    z-index: 1;
    padding: 0 40px;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

.hero-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: auto;
}

.hero-title {
    color: #ffffff;
    font-size: 30px;
    margin-bottom: 20px;
    display: none;
    font-family: 'Helvetica Neue Custom';
    text-transform: initial;
    font-weight: bold;
    max-width: 490px;
}

.hero-subtitle {
    font-size: 20px;
    font-family: 'Helvetica Neue Custom';
    font-weight: 300;
    display: none;
}

/* Accordion Boxes (Nosotros & Expertise) */
.accordion-boxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    padding: 25px 30px;
    /*border-radius: 4px;*/
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: solid 1px #E3E3E3;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin: 0;
    color: #000;
    font-size: 23px;
    font-weight: 600;
}

.accordion-icon svg {
    width: 24px;
    height: auto;
}



.accordion-content {
    display: none;
    color: #ffffff;
    margin-top: 15px;
    font-size: 0.95rem;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active h3 {
    color: #fff;
}

.accordion-item.active .accordion-content p {
    font-size: 16px;
    color: #fff;
}

.accordion-item.active {
    background: #A05C9B;
}

.accordion-item.active svg {
    transform: rotate(180deg);
}

.accordion-item.active svg path {
    stroke: #fff;
}


/* Specific Box Colors */
.purple-gradient {
    background: #A05C9B;
    /* Adjust based on image */
}

.dark-grey-solid {
    background: #4a4a4a;
}

.dark-grey-solid .accordion-header h3,
.dark-grey-solid .accordion-content {
    color: #ffffff;
}

.purple-solid {
    background: #a54687;
}



.expertise-section {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.expertise-box {
    padding: 120px 0;
    background-color: #fff;
}


.about-header {
    background-color: #F5F5F5;
    padding: 120px 0;
    margin: 0;
}

.about-header h2 {
    margin: 0;
}


.expertise-boxes .accordion-item:first-of-type.active {
    background-color: #2B2B2B !important;
}

.expertise-boxes .accordion-item:nth-child(2).active {
    background-color: #666666 !important;
}

/* Team Section */
.team-section {
    background-color: #ffffff;
    padding: 0;
}

.team-standard:last-of-type {
    padding-top: 0;
}

.underlined-pink {
    display: inline-block;
    border-bottom: 3px solid #a54687;
    padding-bottom: 5px;
}

.team-list {
    display: flex;
    flex-direction: column;


}

.team-member {
    background-color: #f5f5f5;
    padding: 97px 0;
}

.team-member.team-main {
    background-color: #fff;
}

.team-member-inner {
    display: grid;
    gap: 30px;
    grid-template-columns: 400px 1fr;
}

.team-member-image {
    flex: 0 0 400px;
}

.team-member-image img {
    width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.team-member:hover .team-member-image img {
    filter: grayscale(0%);
}

.team-member-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}



.team-member-bio {
    grid-column: 1 / -1;
    position: relative;
}

.team-member-bio.main-member {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.team-member-bio svg {
    position: absolute;
    top: 45px;
    right: 0;
    width: 24px;
    cursor: pointer;
}

.team-member-bio.main-member.show {
    max-height: 100%;
}

.team-member-bio.main-member.show .bio-toggle-btn {
    top: initial;
    bottom: 0;
    transform: rotate(180deg);
    width: 24px;
}

.btn-descargar-cv {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-family: 'Helvetica Neue Custom';
    font-weight: 600;
    padding: 15px 20px;
    max-width: fit-content;
    color: #000;
    background-color: #F5F5F5;
    text-decoration: none;
}


.team-member-bio p {
    font-size: 20px;
    font-family: 'Helvetica Neue Custom';
    text-align: justify;
    margin-bottom: 20px
}

.member-name {
    font-size: 30px;
    line-height: 35px;
    color: #000;
    text-transform: uppercase;
    font-family: 'Helvetica Neue Custom';
    margin: 0 0 10px 0;
    font-weight: 100;
}

.member-role {
    color: #4A4A4A;
    font-weight: 100;
    line-height: 20px;
    font-size: 20px;
    margin-bottom: 0px;
    text-align: center;
}

.member-bio {
    color: var(--text-light);
    margin-bottom: 25px;
}

.member-contact {
    display: flex;
    gap: 0px;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    position: absolute;
    bottom: -6px;

    left: 50%;
    transform: translateX(-50%);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A4A4A;
    font-weight: 100;
    font-size: 16px;
    font-family: 'Helvetica Neue Custom';

}

.contact-link svg {
    width: 16px;
}


.team-projects-section .dark-pink-title span:last-of-type {
    color: #A05C9B;
}

.team-projects-section .dark-pink-title:after {
    display: none;
}

.team-projects-desc {
    font-size: 20px;
    font-family: 'Helvetica Neue Custom';
    font-weight: 100;
}

.team-projects-desc strong {
    font-weight: bold;
}

/* Contributions Section */
.contributions-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
    margin: 0 50px;
}

.contributions-slider {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease-in-out;
    padding-bottom: 20px;
    width: 100%;
    will-change: transform;
}

.contributions-section .section-title {
    text-align: left;
}

.contribution-card {
    flex: 0 0 calc(50% - 14px);
    background: #E9E9E9;
    /*border: 1px solid #eeeeee;*/
}

.contribution-card .card-image {
    transition: all .3s linear;
}

.contribution-card:hover .card-image {
    filter: grayscale(100%);
}

.card-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: left;
}

.card-title {
    font-size: 11px;
    color: #000;
    font-family: 'Helvetica Neue Custom';
    font-weight: 600;
}

.card-subtitle {
    font-size: 11px;
    color: #686868;
    font-family: 'Helvetica Neue Custom';
}

.card-text {
    font-size: 10px;
    font-family: 'Helvetica Neue Custom';
    color: #000;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}


.slider-prev svg,
.slider-next svg {
    height: 24px;
    width: auto;

}

.slider-dots-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 14px;
    height: 14px;
    background: #cccccc;
    display: block;
    cursor: pointer;
    opacity: 0.3;
}

.dot.active {
    opacity: 1;
}

.dot:nth-child(1) {
    background-color: #000000;
}

.dot:nth-child(2) {
    background-color: #A05C9B;
}

.dot:nth-child(3) {
    background-color: #8D8D8D;
}

.dot:nth-child(4) {
    background-color: #000000;
}

.dot:nth-child(5) {
    background-color: #A05C9B;
}

.dot:nth-child(6) {
    background-color: #8D8D8D;
}

.dot:nth-child(7) {
    background-color: #000000;
}

.dot:nth-child(8) {
    background-color: #A05C9B;
}

.dot:nth-child(9) {
    background-color: #8D8D8D;
}


/* Reconocimientos */
.recognitions-section .recognition-logos img {
    max-height: 93px;
    object-fit: contain;
}

.recognitions-section .section-title {
    text-align: left;
}

.recognitions-section .recognition-desc {
    font-size: 20px;
    text-align: justify;
    font-family: 'Helvetica Neue Custom';
    font-weight: 100;
}

.recognitions-section .recognition-desc strong {
    font-weight: bold;
}

.recognition-logos {
    display: flex;
    justify-content: flex-end;
}

/* Contact / Footer section in page */
.footer-style-section {
    background-color: #2b2b2b;
    color: #ffffff;
}

.contact-info p {
    font-size: 20px;
    font-family: 'Helvetica Neue Custom';
    font-weight: 100;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-section {
    background-color: #252525;
}

.footer-link {
    color: #a54687;
    display: inline-block;
}

.footer-link:hover {
    color: #ffffff;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
    padding-bottom: 50px
}

.contact-links figure svg {
    max-width: 250px;
}

.contact-links .footer-address {
    font-size: 16px;
    font-family: 'Helvetica Neue Custom';
    font-weight: 600;
    text-align: right;
    color: #000;
    max-width: 220px;
}

.contact-links .right-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.contact-links .linkedin-footer {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4A4A4A
}

.contact-links .linkedin-footer svg {
    max-width: 24px;
}

.copy {
    padding: 30px 0;
    text-align: center;
    font-size: 11px;
    color: #9C9C9C;
}

.site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 25px;
    margin-top: 45px;
    border-top: solid 1.5px #5B5B5B;
}

.site-header .language-switcher {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    gap: 10px;
    list-style: none;
}

.site-header .language-switcher .lang-item {
    text-transform: uppercase;
    font-size: 16px;
    font-family: 'Helvetica Neue Custom';
    font-weight: 400;
    position: relative
}

.site-header .language-switcher .lang-item.current-lang {
    font-weight: bold;
}


.site-header .language-switcher .lang-item::marker {
    content: "";
    display: none !important;
}

.site-header .language-switcher .lang-item:after {
    content: '|';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
}

.site-header .language-switcher .lang-item:last-child:after {
    display: none;
}

.site-nav figure svg {
    max-width: 250px;
}

/* Mobile Menu Core Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s linear;
    transform-origin: left center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Responsive */
@media screen and (max-width: 900px) {

    /* Hamburger Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #F5F5F5;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .hero-bg-video {
        display: none;
    }

    .nav-wrapper.active {
        right: 0;
        padding-top: 80px
    }

    .menu {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .nav-wrapper nav {
        justify-content: center;
        width: 100%;
    }

    .site-nav {
        grid-template-columns: 1fr 40px;
    }

    .site-header figure svg {
        max-width: 250px;
        height: auto;
    }

    /* Typography Adjustments */
    .section-title {
        font-size: 30px;
    }

    .section-desc,
    .team-projects-desc,
    .recognitions-section .recognition-desc,
    .contact-info p {
        font-size: 16px;
        line-height: 1.4;
        text-align: justify;
    }

    .hero-title {
        font-size: 30px;
        display: block;
    }

    .hero-subtitle {
        font-size: 20px;
        display: block;
    }

    .accordion-header {
        gap: 20px
    }

    .accordion-header h3 {
        font-size: 24px;
    }

    .accordion-header svg {
        width: 24px;
    }

    .accordion-item.active .accordion-content p {
        font-size: 16px;
    }


    .member-contact {
        position: relative;
        left: initial;
        transform: initial;
    }

    .team-member-bio.main-member {
        max-height: 115px;
    }

    .team-member-bio.main-member.show {
        max-height: 100%;
    }

    .team-member-bio.main-member.show .bio-toggle-btn {
        top: initial;
        bottom: 0;
        transform: rotate(180deg);
    }


    .team-member-bio svg {
        top: 95px;
    }

    .contact-link {
        font-size: 18px;
    }

    .member-name {
        font-size: 30px;
        line-height: 40px;
    }

    .member-role {
        font-size: 16px;
        line-height: inherit;
        margin-bottom: 50px;
    }

    .card-image img {
        height: 300px;
    }

    .team-member-bio p {
        font-size: 18px;
    }

    .contact-links .footer-address {
        font-size: 16px;
    }

    .contact-links figure svg {
        max-width: 250px;
    }

    /* Layout Adjustments */
    .team-member-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member-image,
    .contact-links .footer-address {
        width: 100%;
        flex: 0 0 auto;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 60px;
    }

    .contact-links .footer-address {
        text-align: left;
    }

    .contact-links .right-side {
        align-items: flex-start;
    }

    .slider-viewport {
        margin: 0 30px;
    }

    .contribution-card {
        flex: 0 0 100%;
    }

    .contributions-slider {
        gap: 0;
    }

    .slider-prev svg,
    .slider-next svg {
        width: 16px;
        height: 26px;
    }

    .contact-links .linkedin-footer {
        font-size: 18px;
    }

    .footer-link svg {
        width: 25px;
    }

    .copy {
        font-size: 13px;
    }
}