:root {
    /* Colors from Figma */
    --color-primary: rgba(8, 14, 43, 1); /* Dark Blue */
    --color-secondary: rgba(244, 244, 246, 1); /* Light Gray / Off-white */
    --color-text: rgba(40, 41, 48, 1); /* Dark Text */
    --color-text-light: rgba(40, 41, 48, 0.8); /* Slightly lighter for body */
    --color-white: #FFFFFF;
    --color-accent: rgba(243, 243, 243, 1); 
    --color-border: rgba(40, 41, 48, 0.1);

    /* Fonts */
    --font-heading: 'Red Rose', serif; /* For main titles */
    --font-subheading: 'Newsreader', serif; /* For subtitles and menu */
    --font-body: 'Inter', sans-serif; /* For body text */

    /* Layout */
    --container-width: 1200px;
    --header-height: 90px;
    --section-spacing: 120px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.layout-wrapper {
    width: 100%;
    background-color: var(--color-white); /* White background for content */
    position: relative;
    overflow: hidden; /* Ensure content doesn't spill */
    min-height: 100vh; /* Occupy full viewport height */
}

ul {
    list-style: none;
}

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

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

ul {
    list-style: none;
}

/* Layout Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: var(--section-spacing) 0;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    margin-bottom: 24px;
    opacity: 0.6;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* display: flex;  -- Removing flex centering to allow absolute positioning of children relative to header */
    /* align-items: center; */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
    /* Keeping container for other elements if needed, but logo will be positioned absolutely */
    display: flex;
    justify-content: flex-end; /* Align other items to right */
    align-items: center;
    height: 100%;
    position: static; /* Let children position relative to .header */
}

.logo {
    /* Logo Container */
    position: absolute;
    width: 112px;
    height: 20.67px;
    left: 64px;
    top: calc(50% - 20.67px/2 + 0.33px);
    z-index: 1001; /* Ensure above everything */
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
}

/* Header Menu Frame (Frame 17) */
@media (min-width: 769px) {
    .header-right-frame {
        /* User provided Figma properties */
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center; /* Changed to center for visual text alignment */
        padding: 0px;
        gap: 40px;
        
        position: absolute;
        width: auto; /* Changed from fixed 694px to auto to prevent text wrapping */
        height: 39px;
        right: 64px;
        top: calc(50% - 39px/2 - 0.5px);
        
        z-index: 1002;
    }
    
    .nav-menu {
        margin: 0; /* Remove auto margins */
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    /* margin-left: auto; -- Handled by frame now */
    /* margin-right: 48px; -- Handled by gap now */
}

.nav-list {
    display: flex;
    gap: 48px;
}

.nav-link {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-subheading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text);
    cursor: default;
}

.lang-selector a {
    text-decoration: none;
    color: var(--color-text);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-selector a:hover {
    opacity: 1;
}

.lang-selector span.active {
    font-weight: 700;
}

.lang-selector .separator {
    opacity: 0.3;
}

.lang-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0);
    display: block;
    margin-bottom: 2px; /* Visual adjustment for alignment */
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 0; /* Square borders as per design usually */
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Mobile Actions */
.mobile-actions {
    display: none;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--color-white);
        transition: 0.3s;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8,14,43,0.2) 0%, rgba(8,14,43,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem; /* ~80px */
    line-height: 1.1;
    margin-bottom: 32px;
    font-weight: 600;
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 100%; /* Changed from 600px to allow single line */
    letter-spacing: 0.5px;
    white-space: nowrap; /* Ensure it stays on one line */
}

.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Quem Somos */
.quem-somos {
    width: 100%; /* Changed from 1440px to 100% */
    height: 900px; /* Explicit height from Figma */
    background-color: #FFFFFF;
    position: relative; /* For absolute positioning of children */
    overflow: hidden; /* Fix for image container sticking out */
    
    /* Flex item properties if needed, though usually parent controls this */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    
    margin: 0 auto; /* Ensure it stays centered in the viewport if parent is wider */
}

.quem-somos-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    /* Removed grid to use absolute positioning */
}

.quem-somos-visual {
    /* Frame 74 properties from Figma */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 84px 56px;
    gap: 10px;

    position: absolute;
    width: 720px;
    height: 944.01px;
    left: calc(50% - 720px/2 - 360px);
    top: calc(50% - 944.01px/2 - 1.5px);

    background: #FFFFFF;
    /* Ensure z-index is correct if needed, though default is usually fine */
}

.pattern-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensure image fits nicely within the padding */
    opacity: 1; /* Reset opacity if needed, or keep 0.8 if desired. User didn't specify, but image usually is opaque in frames */
}

.quem-somos-content {
    /* Frame 12 properties from Figma */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 32px;
    
    position: absolute;
    width: 416px;
    left: 848px;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
}

.quem-somos-content .section-title-large,
.quem-somos-content .section-text-highlight,
.quem-somos-content .section-text {
    margin-bottom: 0; /* Remove default margins to use gap */
}

.section-title-large {
    font-family: var(--font-heading);
    font-size: 3.5rem; /* Large title size */
    color: var(--color-primary);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.1;
}

.section-text-highlight {
    font-family: var(--font-subheading);
    font-size: 22px; /* Adjusted to 22px per user request */
    line-height: 1.4; /* Tighter spacing */
    color: var(--color-text);
    margin-bottom: 24px; /* Reduced margin */
    font-weight: 500; /* Bolder text */
}

.section-text {
    font-family: var(--font-subheading); /* Changed to serif to match design */
    font-size: 22px; /* Adjusted to 22px per user request */
    line-height: 1.4; /* Tighter spacing */
    color: var(--color-text);
    font-weight: 500; /* Bolder text */
}

/* Banner Harmonia */
.banner-harmonia {
    width: 100%;
    height: 600px;
    background-color: #080E2B; /* Dark Blue Background */
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.harmonia-visual {
    /* pexels-nc-farm-bureau-mark-2886937 1 */
    position: absolute;
    width: 720px;
    height: 600px;
    left: calc(50% - 720px);
    top: 0px;
}

.harmonia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.harmonia-content {
    /* Text Container Position */
    position: absolute;
    width: 1312px;
    height: 184px;
    left: calc(50% - 720px + 64px);
    top: calc(50% - 184px/2);
    
    /* Layout properties from user snippet */
    display: flex;
    align-items: flex-end; /* Matches user request */
    justify-content: flex-end; /* To align text to right side of the container */
}

.harmonia-content h2 {
    /* Web - Desktop/GIANT TWO */
    font-family: 'Red Rose', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 92px;
    line-height: 100%;
    text-align: right;
    letter-spacing: -0.04em;
    font-feature-settings: 'case' on;
    color: #FFFFFF;
    
    /* Ensure it takes necessary width */
    width: 100%; 
}

/* Remove old styles if no longer used or keep for reference? 
   Better to replace the block to keep file clean.
   I will remove .banner-bg-img, .banner-overlay, .banner-content styles related to this section.
*/

/* Como Atuamos (Services) */
.como-atuamos {
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center; /* Changed from flex-start to center, to help with alignment */
    padding: 32px 0 32px 0; /* Reduced top and bottom padding to bring closer to image above and below */
    gap: 32px;
    width: 100%;
}

.como-atuamos-header {
    width: 1268px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.como-atuamos-header .section-label {
    font-family: var(--font-subheading);
    font-weight: 500;
    font-size: 12px;
    line-height: 112%;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 32px;
}

.como-atuamos-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.como-atuamos-intro .section-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 52px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-bottom: 0;
}

.como-atuamos-intro .section-intro {
    font-family: var(--font-subheading);
    font-weight: 400;
    font-size: 22px; /* Adjusted to 22px per user request */
    line-height: 120%;
    color: var(--color-primary);
    margin-bottom: 0;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 10px;
    width: 1268px;
    margin: 0 auto;
}

/* Rows removed from HTML, styles deprecated */

.service-card {
    width: 416px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 32px;
    height: 416px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; Removed to center text */
    flex: 0 0 auto; /* Prevent shrinking/growing unexpectedly */
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 32px;
}

.service-desc {
    font-family: var(--font-subheading);
    font-size: 18px;
    line-height: 120%;
    margin-top: auto;
    margin-bottom: auto;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Responsive adjustments */
@media (max-width: 1300px) {
    .services-grid,
    .como-atuamos-header {
        width: 100%;
        max-width: 1268px;
        padding: 0 20px;
    }
    
    .service-card {
        width: calc(33.33% - 10px); /* 3 cards per row logic roughly */
        min-width: 300px;
        height: auto;
        min-height: 416px;
    }
}

/* Sinergia */
.sinergia {
    width: 100%;
    height: 450px;
    background-color: #F4F5E1;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    padding: 0;
}

.sinergia-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: block; /* Override flex */
    min-height: auto; /* Override min-height */
}

.sinergia-visual {
    position: absolute;
    width: 720px;
    height: 450px;
    right: calc(50% - 720px);
    top: 0px;
    flex: none; /* Override flex: 1 */
}

/* Sinergia Defaults (Desktop) */
.desktop-img {
    display: block;
}

.mobile-img {
    display: none;
}

.sinergia-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4; /* Default opacity for desktop */
}

.sinergia-content {
    position: absolute;
    width: 1312px;
    height: 184px;
    left: calc(50% - 720px + 64px);
    top: calc(50% - 184px/2);
    padding: 0;
    background-color: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex: none; /* Override flex: 1 */
    z-index: 10;
}

.sinergia-content h2 {
    font-family: 'Red Rose', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 92px;
    line-height: 100%;
    letter-spacing: -0.04em;
    font-feature-settings: 'case' on;
    color: #080E2B;
    margin: 0;
}

/* Nosso Time */
.nosso-time {
    background-color: var(--color-white);
    padding: 32px 176px 32px 176px; /* Reduced top and bottom padding to 32px per user request */
    display: flex;
    flex-direction: column;
    align-items: center; /* Keep center to center the container */
    width: 100%;
}

.nosso-time .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed back to flex-start */
    gap: 32px; /* Reduced gap to 32px (one line) per user request */
    padding: 0;
    max-width: 1200px; /* Restored container max-width for centering content */
    width: 100%;
}

.team-header {
    /* Frame 7 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed back to flex-start */
    text-align: left; /* Changed to left */
    padding: 0px;
    gap: 16px; /* Reduced gap from 32px to 16px per user request */
    width: 100%;
    flex: none;
    order: 0;
    flex-grow: 0;
    z-index: 0;
}

.team-header .section-label {
    font-family: 'Red Rose', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 52px;
    line-height: 100%;
    letter-spacing: -0.02em;
    font-feature-settings: 'case' on;
    color: #000000;
    text-transform: none;
    opacity: 1; /* Override generic .section-label opacity */
}

.team-header .section-intro {
    font-family: 'Newsreader', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 22px; /* Adjusted to 22px per user request */
    line-height: 120%;
    color: #000000; /* Set to pure black as requested */
    margin: 0;
    max-width: 100%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    margin-top: 0; /* Remove top margin to strictly follow flex gap of 124px */
    width: 100%;
}

.member-name {
    /* Title */
    width: 100%;
    height: 64px;

    /* Web - Desktop/MDS */
    font-family: 'Red Rose', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 32px;
    line-height: 100%;
    
    display: flex;
    align-items: flex-end;
    font-feature-settings: 'case' on;
    
    color: #080E2B;
    margin: 0;
    
    /* Auto layout por dentro */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.member-name span {
    display: block;
    width: 100%;
}

.member-bio {
    /* Title (Bio) */
    width: 100%;
    /* height: 132px;  Let height be auto to fit content, but max-height/min-height could be used if strictly following Figma */
    
    /* Web - Desktop/XXXS */
    font-family: 'Newsreader', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    
    color: #080E2B;
    margin: 0;
    
    /* Auto layout por dentro */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.member-contact {
    /* Frame (Icons) */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 22px;
    margin-top: auto; /* Push to bottom to align emails */
    
    height: auto;
    
    /* Auto layout por dentro */
    flex: none;
    order: 2;
    flex-grow: 0;
}

/* Adjust the card container to match Frame 37 structure (Text Content) */
.team-member {
    /* Adjusting to match the layout gap */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 32px; /* Gap inside Frame 37 */
    width: 340px;
    height: 100%; /* Fill the grid cell height for alignment */
}

/* Add spacing between image and text content */
.member-photo {
    width: 340px;
    height: 304px;
    object-fit: cover;
    margin-bottom: 0; /* Removed margin to reduce space to just the gap (32px) */
}

.member-email {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-decoration: underline;
    color: var(--color-primary);
    transition: all 0.3s ease;
    display: inline-block;
}

.member-email:hover {
    opacity: 0.9;
    padding-left: 8px;
    text-decoration: none;
}

.member-linkedin img {
    width: 20px;
    height: 20px;
}

/* Footer / Contato */
.contato-footer {
    background-color: #080E2B;
    padding: 64px;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contato-footer .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
    width: 100%;
    max-width: 1440px;
    padding: 0;
    margin: 0 auto;
    flex: 1;
}

.contato-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.contato-label {
    font-family: 'Newsreader', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 112%;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-feature-settings: 'case' on;
    color: #FFFFFF;
    opacity: 1;
    margin: 0;
}

.contato-title {
    font-family: 'Red Rose', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 52px;
    line-height: 100%;
    letter-spacing: -0.02em;
    font-feature-settings: 'case' on;
    color: #FFFFFF;
    margin: 0;
}

.contato-text {
    font-family: 'Newsreader', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    font-feature-settings: 'case' on;
    color: #FFFFFF;
    max-width: 528px;
    margin: 0;
    opacity: 1;
}

.contato-email-link {
    font-family: 'Red Rose', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 92px;
    line-height: 100%;
    letter-spacing: -0.04em;
    font-feature-settings: 'case' on;
    color: #FFFFFF;
    text-decoration: none;
    border: none;
    padding: 0;
    display: block;
    transition: all 0.3s ease;
}

.contato-email-link:hover {
    opacity: 0.9;
    padding-left: 16px;
}

.address-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.address-block p, .address-link p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #FFFFFF;
    opacity: 1;
    margin: 0;
    margin-bottom: 4px;
}

.address-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 4px;
}

.address-link:hover {
    opacity: 0.9;
    padding-left: 16px; /* Subtle slide effect */
}

.address-link:hover p {
    text-decoration: none;
}

.contato-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-top: -48px;
}

.contato-social-frame {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 0;
    gap: 72px;
    width: 100%;
    height: 72px;
    
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    
    box-sizing: border-box;
}

.social-spacer {
    flex-grow: 1;
}

.social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 32px;
    height: 32px;
    
    flex: none;
    order: 1;
    flex-grow: 0;
}

.social-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.contato-bottom-line {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 32px;
    isolation: isolate;
    width: 100%;
    height: 17px;
    
    flex: none;
    order: 1;
    flex-grow: 0;
    
    margin-top: 0;
}

.contato-bottom-line .copyright {
    width: auto;
    height: 17px;
    margin-right: auto;
    
    font-family: 'Newsreader', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    font-feature-settings: 'case' on;
    color: #F3F3F3;
    
    flex: none;
    order: 0;
    flex-grow: 0;
}

.contato-bottom-line a {
    font-family: 'Newsreader', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    text-align: right;
    font-feature-settings: 'case' on;
    color: #F3F3F3;
    text-decoration: none;
    
    flex: none;
    height: 17px;
    transition: opacity 0.3s;
}

.contato-bottom-line a:hover {
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .hero-title { font-size: 4rem; }
    .banner-content h2 { font-size: 3.5rem; }
    .sinergia-content h2 { font-size: 3.5rem; }
    
    .services-grid {
        gap: 24px;
        width: 100%;
    }
    .service-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-spacing: 60px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        right: 24px;
        width: max-content;
        min-width: 0;
        height: auto;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 32px 16px; /* Reduced padding again */
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        
        /* Animation: Emerge from icon */
        transform-origin: top right;
        transform: scale(0.9) translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1005;
    }

    .nav-menu.active {
        transform: scale(1) translateY(0);
        opacity: 1;
        visibility: visible;
        right: 24px;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.25rem;
        color: var(--color-white);
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .lang-selector,
    .nav-menu .lang-selector a {
        color: var(--color-white);
    }

    .header-actions {
        display: none; 
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .mobile-actions .btn {
        font-size: 1.25rem; /* Match nav-link font size */
        padding: 12px 24px; /* Adjust padding if needed */
        width: 100%; /* Ensure it fills container if needed, or auto */
        white-space: nowrap;
    }
    
    .hero-title { font-size: 3rem; }
    .hero-subtitle { 
        font-size: 1.1rem;
        white-space: normal; /* Allow wrapping on mobile */
    }

    .quem-somos {
        width: 100%;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .quem-somos-container {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    .quem-somos-visual {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        order: 0;
        transform: none;
    }

    .quem-somos-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.15; /* Reduced opacity to ensure text readability */
    }

    .quem-somos-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        padding: 80px 24px;
        z-index: 1;
    }

    /* Harmonia Banner Mobile */
    .banner-harmonia {
        width: 100%;
        height: auto;
        min-height: 80vh; /* Adjust height as needed */
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .harmonia-visual {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .harmonia-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.4; /* Dark background image needs some opacity to show blue bg or just be dark itself */
    }

    .harmonia-content {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        padding: 40px 24px;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .harmonia-content h2 {
        text-align: center;
        width: 100%;
        font-size: 2.5rem;
    }

    /* Sinergia Mobile */
    .sinergia {
        width: 100%;
        height: auto;
        min-height: unset;
        aspect-ratio: 320 / 568;
        display: flex;
        align-items: stretch;
        position: relative;
        background-color: var(--color-white);
        background-image: url('assets/frame-75-278.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .sinergia-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        flex: 1;
        position: relative;
        padding: 0;
    }
    
    .sinergia-visual {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        display: none;
        right: auto;
    }

    .sinergia-bg-img.desktop-img {
        display: none;
    }

    .sinergia-bg-img.mobile-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 1; /* Full opacity for mobile image */
    }

    .sinergia-content {
        display: none;
    }

    /* Adjust padding for adjacent sections to reduce whitespace */
    .nosso-time {
        padding: 60px 24px;
    }

    .nosso-time .container {
        gap: 40px; /* Reduced from 124px for mobile */
    }
    
    .como-atuamos {
        padding: 60px 0;
    }

    .banner-content h2 { font-size: 2.5rem; }
    
    .service-card {
        flex: 0 0 100%;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    
    /* Mobile Carousel Logic */
    .services-grid,
    .team-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        gap: 16px;
        padding-bottom: 24px; /* Space for potential scrollbar */
        width: 100%;
        -webkit-overflow-scrolling: touch;
        
        /* Hide scrollbar for cleaner look but keep functionality */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE 10+ */
    }
    
    .services-grid::-webkit-scrollbar,
    .team-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }

    .service-card,
    .team-member {
        flex: 0 0 85vw; /* Show 85% of card to hint at more content */
        width: 85vw;
        min-width: 0; /* Reset min-width */
        max-width: none;
        scroll-snap-align: center;
        height: auto; /* Let content dictate height */
        margin: 0;
    }

    /* Ensure team grid doesn't use grid layout on mobile */
    .team-grid {
        grid-template-columns: none;
    }

    .contato-footer {
        padding-top: 24px;
        padding-left: 24px;
        padding-right: 24px;
        min-height: 100vh; /* Ensure footer takes full visible frame */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .contato-footer .container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .contato-title { font-size: 2.5rem; }
    .contato-email-link { font-size: 1.5rem; word-break: break-all; }

    .contato-footer-bottom {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        margin-top: 24px;
    }

    .contato-social-frame {
        width: auto;
        height: auto;
        gap: 0;
        order: 2;
        margin-bottom: 4px; /* Align with bottom text */
    }

    .social-spacer {
        display: none;
    }

    .contato-bottom-line {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        gap: 4px;
        order: 1;
        flex: 1;
    }

    .contato-bottom-line .copyright {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .contato-bottom-line a {
        text-align: left;
        line-height: 1.4;
    }

    .team-header {
        width: 100%;
        height: auto;
    }
    
    .team-header .section-intro {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}
