/*
Theme Name: Home Custom Theme
Description: Styles specifically for the spinola Page.
*/

:root {
    --color-primary: #283157;
    --color-secondary: #c89e66;
    --color-dark: #283157;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-border: #e0e0e0;
    --font-primary: 'Source Sans 3', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 13px;
}

.btn-primary:hover {
    background-color: #b89860;
}

.btn-submit {
    width: 100%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px;
}

.btn-submit:hover {
    background-color: #b89860;
}

/* SECTION 1: HERO SECTION - SLIDER */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    font-family: 'Cormorant Garamond', serif;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PAGINATION VERTICAL */
.hero-pagination {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    height: auto !important;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 30px !important;

    left: inherit !important;
    justify-content: center;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-secondary) !important;
    width: 30px !important;
    border-radius: 6px !important;
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: 400px;
    }

    .hero-slide {
        height: 400px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-pagination {
        bottom: 30px !important;
        top: auto !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        flex-direction: row;
    }
}

/* SECTION 2: SERVICES SECTION */
.services-section {
    padding: 60px 0;

}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;

}

.service-card:nth-child(1),
.service-card:nth-child(3) {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.service-card:nth-child(2),
.service-card:nth-child(4) {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon img {
    max-width: 80px;
    height: auto;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION 3: ABOUT SECTION */
.about-section {
    padding: 0px 0;
    background-color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 60px;
    line-height: 1.4;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 950px;
}

.about-image img {

    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

}

.about-text {
    width: 100%;
    text-align: center;
}

.about-text p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #1e2040;
    text-align: center;
}

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

/* SECTION 4: MISSÃO, VISÃO E VALORES */
.mvv-section {
    padding: 100px 0;

}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.mvv-card {
    padding: 25px 25px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 347px;
}

.mvv-card.missao {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.mvv-card.missao.expanded {
    background-color: var(--color-white);
    border: 3px solid var(--color-secondary);
    color: var(--color-text);
}

.mvv-card.visao {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.mvv-card.visao.expanded {
    background-color: var(--color-white);
    color: var(--color-text);
    border: 3px solid var(--color-secondary);
}

.mvv-card.valores {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.mvv-card.valores.expanded {
    background-color: var(--color-white);
    color: var(--color-text);
    border: 3px solid var(--color-secondary);
}

.mvv-card-header {
    margin-bottom: 20px;
}

.mvv-title {
    font-family: 'Cinzel', serif;
    font-size: 35px;
    font-weight: 400;
    margin-bottom: 0px;
    letter-spacing: 0.5px;
    text-align: center;
}

.mvv-card .mvv-title {
    color: var(--color-white);
}

.mvv-card.expanded .mvv-title {
    color: var(--color-text);
}

.mvv-subtitle {
    font-size: 19px;

    opacity: 1;
    margin: 0;
    line-height: 1.4;
    color: #c89e66;
}

.mvv-card .mvv-subtitle {
    color: #c89e66;
    text-align: center;
}



.mvv-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.mvv-text-preview,
.mvv-text-full {
    font-size: 19px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 12px;
}

.mvv-text-full {
    margin-top: 12px;
}

.mvv-text-full p {
    font-size: 19px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 12px;
}

.mvv-text-full p:last-child {
    margin-bottom: 0;
}

.mvv-toggle-btn {
    align-self: center;
    background: none !important;
    border: none;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-transform: capitalize;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.mvv-card.expanded .mvv-toggle-btn {
    color: var(--color-secondary);
}

.mvv-toggle-btn .btn-text {
    display: inline;
}

.mvv-toggle-btn .btn-icon {
    margin-left: 5px;
    display: inline-block;
    font-size: 11px;
}

.mvv-toggle-btn:hover {
    opacity: 1;
    text-decoration: underline;
    background: none;
    color: #bd955b;
}

/* SECTION 5: ÁREA DE ATUAÇÃO */
.practice-areas-section {
    background-color: #bd955b;
    padding: 40px 0 50px 0;
    /* No bottom padding as images touch bottom or have tan below */
}


.practice-areas-section .section-subtitle {
    color: #fff;
}

.practice-areas-header {
    text-align: center;
    color: var(--color-white);
    margin-bottom: 60px;
    padding: 0 20px;
}

.practice-areas-section .section-title {
    font-family: 'Cinzel', serif;
    font-size: 46px;
    font-weight: 400;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: #283157;
}

.section-description {
    font-family: var(--font-primary);
    font-size: 19px;
    max-width: 750px;
    margin: 5px auto 40px;
    line-height: 1.6;
    opacity: 1;
    text-align: center;
}

.practice-areas-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    width: 100%;
}

.practice-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 480px;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.practice-card:last-child {
    border-right: none;
}

.practice-image {
    width: 100%;
    height: 100%;
}

.practice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.practice-card:hover .practice-image img {
    transform: scale(1.05);
}

.practice-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    color: var(--color-white);
    padding: 25px 15px;

    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* SECTION 6: ADVOCACIA SECTION */
.advocacy-section {
    padding: 80px 0;
    background-color: var(--color-white);
    text-align: center;
}

.advocacy-section {
    padding: 100px 0;
    background-color: var(--color-white);
    text-align: center;
}

.advocacy-section .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
}

.section-text {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: #1a2332;
    /* Navy blue from PSD text sample */
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.section-text em,
.section-text i {
    font-weight: 600;
}

/* SECTION 7: TEAM SECTION */
.team-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.team-intro-text {
    font-family: var(--font-primary);
    font-size: 28px;
    line-height: 1.6;
    color: #1e2040;
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.team-intro-text em,
.team-intro-text i {
    font-weight: 600;
}

.team-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #1e2040;
}

.team-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Timeline vertical line */
.team-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d4a574;
    transform: translateX(-50%);
}

.team-member {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 50px;
    margin-bottom: 80px;
    position: relative;
}

/* Team member 1: text on left, image on right */
.team-member-1 {
    grid-template-columns: 1fr auto 1fr;
}

.team-member-1 .team-member-text {
    grid-column: 1;
    text-align: right;
    padding-right: 30px;
}

.team-member-1 .team-member-image {
    grid-column: 3;
    grid-row: 1;
}

/* Team member 2: image on left, text on right */
.team-member-2 {
    grid-template-columns: 1fr auto 1fr;
}

.team-member-2 .team-member-image {
    grid-column: 1;
}

.team-member-2 .team-member-text {
    grid-column: 3;
    text-align: left;
    padding-left: 30px;
}

/* Timeline dot */
.team-timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 25px;
    height: 25px;
    background-color: #d4a574;
    border: 3px solid var(--color-white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.team-member-1 .team-timeline-dot {
    left: 50%;
}

.team-member-2 .team-timeline-dot {
    left: 50%;
}

.team-member-image {
    max-width: 340px;
    width: 100%;
}

.team-member-image img {
    width: 100%;
    height: auto;


    display: block;
}



.team-member-2 .team-member-image {
    margin-left: 80px;
}

.team-member-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #283157;
    margin-top: 0px;
}

.team-member-name em {}

.team-member-bio {
    font-size: 16px;
    line-height: 1.7;
    color: #283157;
    text-align: justify;
    margin-bottom: 15px;
}

.txt-align-right p,
.txt-align-right h3 {
    text-align: right !important;
}

.team-member-bio:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .team-content::before {
        display: none;
    }

    .team-member,
    .team-member-1,
    .team-member-2 {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    /* Centraliza textos — sobrescreve o txt-align-right do desktop */
    .team-member-1 .team-member-text,
    .team-member-2 .team-member-text,
    .txt-align-right .team-member-text {
        grid-column: 1;
        text-align: center !important;
        padding: 0;
    }

    .txt-align-right p,
    .txt-align-right h3 {
        text-align: center !important;
    }

    .team-member-bio {
        text-align: center !important;
    }

    /* Centraliza imagens */
    .team-member-1 .team-member-image,
    .team-member-2 .team-member-image {
        grid-column: 1;
        margin-left: auto;
        margin-right: auto;
        max-width: 280px;
        width: 100%;
    }

    /* Garante que a imagem ocupe a primeira linha no mobile */
    .team-member-1 .team-member-image {
        grid-row: 1;
    }
    .team-member-1 .team-member-text {
        grid-row: 2;
    }

    .team-timeline-dot {
        display: none;
    }
}

/* SECTION 8: CONTACT SECTION */
.contact-section {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('../images/bg_slider.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--color-white);
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 15px;
    text-align: center;
}

.contact-subtitle {
    text-align: center;
    font-size: 15px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-row:last-of-type {
    grid-template-columns: 1fr;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 18px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 14px;
    background-color: var(--color-white);
    color: var(--color-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    opacity: 0.8;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    opacity: 1;
}

#footer.site-footer {
    position: relative !important;
    height: auto !important;
    padding-top: 60px;
}

body {
    margin-bottom: 0 !important;
}

.btn-submit:hover {
    background-color: #b89860;
    transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
    background-color: var(--color-light);
    color: var(--color-text);
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 200px 1fr 250px;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    line-height: 1.5;
    color: #1a2332;
}

.footer-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

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

.footer-social-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 20px;
    line-height: 1.4;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: #999;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .practice-areas-grid {
        flex-wrap: wrap;
    }

    .practice-card {
        flex: 0 0 50%;
        height: 350px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-content {
        /* already flex column */
    }

    .section-subtitle {
        font-size: 24px;
    }

    .team-content {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }

    .hero-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .practice-areas-grid {
        flex-wrap: wrap;
    }

    .practice-card {
        flex: 0 0 100%;
        height: 300px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
    }

    .practice-title {
        background-color: var(--color-primary);
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .team-image {
        max-width: 400px;
    }

    .team-text {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .practice-areas-grid {
        justify-content: center;
    }

    .practice-card {
        flex: 0 0 300px;
        margin-bottom: 20px;
        height: 350px;
    }
}