/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2E1C03;
    background: linear-gradient(180deg, rgba(248, 225, 183, 0.95) 0%, rgba(117, 78, 26, 0.95) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #151a25;
    min-height: 100vh;
}

body.body-bg-loaded {
    background-image: linear-gradient(180deg, rgba(248, 225, 183, 0.95) 0%, rgba(117, 78, 26, 0.95) 100%), image-set(url('body.avif') type('image/avif'), url('body.webp') type('image/webp'));
}

/* Tipografia */
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #3A2500;
}

/* Links */
a {
    color: #2E1C03;
    transition: color 0.3s;
    text-decoration: none;
}

a:hover {
    color: #5A3D0C;
}

/* Sobrescrevendo classes cinza para castanho */
.text-gray-600, .text-gray-500 {
    color: #3A2500 !important;
}

:root {
    --content-max-width: 1400px;
}

/* Container */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.header-scroll-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    visibility: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: padding 0.3s ease;
}

header.is-scrolled {
    padding: 0.75rem 0 0;
}

.header-spacer {
    display: block;
    width: 100%;
    pointer-events: none;
}

.header-surface {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    background-color: rgba(245, 245, 245, 0.70);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: width 0.3s ease, max-width 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
}

header.is-scrolled .header-surface {
    width: min(100%, var(--content-max-width));
    max-width: var(--content-max-width);
    margin: 0 auto;
    border-radius: 1rem;
}

nav {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    font-size: 1.225em;
    font-weight: 800;
    color: #0c1018;
    font-family: 'Merriweather', serif;
}

#logo-name {
    font-size: 1.75rem;
    font-style: italic;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: none;
}

.nav-links a {
    color: #3A2500;
    transition: color 0.3s;
    margin-left: 2rem;
    font-family: 'Merriweather', serif;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0c1018;
}

.contact-info {
    display: none;
    flex-direction: column;
    color: #151a25;
    gap: 0.1rem;
    font-size: 0.8rem;
}

.language-links {
    display: none;
    gap: 1rem;
    align-items: center;
}

.language-links a {
    color: #3A2500;
    font-family: 'Merriweather', serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.language-links a:hover {
    color: #0c1018;
}

.language-links a.active {
    background-color: #CA7842;
    color: white;
}

.language-links a.active:hover {
    background-color: #B56A3A;
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: #3A2500;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.open span:first-child {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background-color: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(10px);
    padding: 6rem 2rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu a {
    color: #3A2500;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(58, 37, 0, 0.1);
    font-family: 'Merriweather', serif;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #0c1018;
}

.mobile-language-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(58, 37, 0, 0.1);
}

.mobile-language-links a {
    background-color: transparent;
    border: 1px solid #3A2500;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #3A2500;
    text-align: center;
    min-width: 50px;
}

.mobile-language-links a.active {
    background-color: #CA7842;
    color: white;
    border-color: #CA7842;
}

.mobile-language-links a.active:hover {
    background-color: #B56A3A;
    border-color: #B56A3A;
}

/* Ensure mobile menu is fully responsive */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* Main content */
main {
    padding: 0 1.5rem 2rem 1.5rem;
}

/* Home section */
.home-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    border-radius: 1rem 1rem 2rem 2rem;
    margin: 0 -1.5rem 2rem -1.5rem;
    position: relative;
    padding: 3rem 1.5rem;
    min-height: 78vh;
    height: 78vh;
    margin-top: 1rem;
    background: linear-gradient(180deg, #f8e1b7 0%, #8b5e28 50%, #754e1a 100%);
    overflow: hidden;
}

/* Background removido para secção limpa */

.home-section > * {
    position: relative;
    z-index: 5;
}

.home-content {
    width: 45%;
    margin-bottom: 0;
    text-align: left;
    max-width: none;
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
}

.home-title {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
}

.home-description {
    font-family: 'Merriweather', serif;
    color: rgba(255, 255, 255, 0.70);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.home-image {
    width: 100%;
    position: absolute;
    z-index: 1;
    height: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.image-container {
    background-color: #e8eaed;
    border-radius: 1.5rem;
    padding: 1rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    height: 440px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.home-slideshow-container {
    padding: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    margin: 0;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
}

.home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    transform-origin: center;
    will-change: transform;
}

.home-slide.active {
    opacity: 1;
}

.hero-splash {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8e1b7 0%, #754e1a 100%);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.hero-splash.is-fading {
    animation: hero-splash-fadeout 0.25s ease-out forwards;
}

.hero-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-splash-text {
    font-family: 'Merriweather', serif;
    font-size: 3.25rem;
    font-style: italic;
    font-weight: 700;
    color: #0c1018;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.12);
    opacity: 0.2;
    transform: none;
    animation: hero-splash-reveal 0.25s ease-out forwards;
}

@media (min-width: 768px) {
    .hero-splash-text {
        font-size: 4.5rem;
    }
}

@keyframes hero-splash-reveal {
    from {
        opacity: 0.2;
        transform: none;
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-splash-fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-splash-text {
        animation: none;
        opacity: 1;
    }

    .hero-splash.is-fading {
        animation: none;
    }
}

.fade-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: opacity 1s;
}

/* About section */
.about-section {
    padding: 2.5rem 0;
    background-color: rgba(245, 245, 245, 0.60);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    margin: 0 -1.5rem 2rem -1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.about-section.lazy-bg-loaded::before {
    background-image: image-set(
        url('481160608_618802147576287_3886525919297083697_n.avif') type('image/avif'),
        url('481160608_618802147576287_3886525919297083697_n.webp') type('image/webp')
    );
    opacity: 0.15;
}

.about-section > * {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #0c1018;
}

.section-subtitle {
    font-family: 'Merriweather', serif;
    color: #3A2500;
    margin-top: 0.5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    width: 300px;
    height: 400px;
    object-fit: cover;
    opacity: 0.9;
    transform: scale(1);
    transition: transform 0.3s;
}

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

.about-text {
    width: 100%;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-text p {
    color: #3A2500;
    margin-bottom: 1.5rem;
}

.cv-links {
    display: flex;
    gap: 1rem;
}

.cv-links a {
    color: #CA7842;
    font-weight: 700;
    transition: all 0.3s;
}

.cv-links a:hover {
    text-decoration: underline;
}

/* Services section */
.services-section {
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #CA7842;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0c1018;
}

.service-card p {
    color: #3A2500;
    line-height: 1.6;
    margin: 0;
}

 

/* Works section */
.works-section {
    padding: 2.5rem 0;
    background-color: rgba(245, 245, 245, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    margin: 0 -1rem 2rem -1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    overflow: hidden;
}

.works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.works-section.lazy-bg-loaded::before {
    background-image: image-set(
        url('482005906_627359926720509_4954922505026822949_n.avif') type('image/avif'),
        url('482005906_627359926720509_4954922505026822949_n.webp') type('image/webp')
    );
    opacity: 0.15;
}

.works-section > * {
    position: relative;
    z-index: 1;
}

.works-section .works-bento {
    z-index: 10;
}

.works-gallery {
    position: relative;
    margin: 2rem auto 0;
}

.works-bento-viewport {
    width: 100%;
}

.works-carousel-nav {
    display: none !important;
}

/* Works Bento Grid */
.works-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 155px;
    gap: 0.875rem;
    margin: 0;
    max-width: 100%;
}

.bento-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 0;
}

.bento-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.bento-item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.bento-item:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.bento-item:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.bento-item:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.bento-item:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.bento-item:nth-child(7) {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

.bento-item:nth-child(8) {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
}

.bento-item:nth-child(9) {
    grid-column: 1 / 2;
    grid-row: 5 / 6;
}

.bento-item:nth-child(10) {
    grid-column: 2 / 5;
    grid-row: 5 / 6;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

.bento-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bento-item:hover .slide-overlay,
.carousel-slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.slide-overlay p {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
}

/* Works carousel navigation (mobile only) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(202, 120, 66, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: all;
}

.carousel-nav:hover {
    background-color: rgba(181, 106, 58, 1);
    transform: translateY(-50%) scale(1.1);
}

.icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    fill: currentColor;
}

.icon--lg {
    width: 2rem;
    height: 2rem;
}

.icon--xl {
    width: 3rem;
    height: 3rem;
}

.carousel-nav .icon {
    color: white;
    width: 1.5rem;
    height: 1.5rem;
}

.carousel-nav-left {
    left: 10px;
}

.carousel-nav-right {
    right: 10px;
}

.carousel-nav:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-nav:disabled:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1);
}






/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: 0;
    display: block;
    width: 95%;
    max-width: 800px;
    max-height: 95vh;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    border-radius: 0 0 1rem 1rem;
}

.modal-overlay h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.modal-overlay p {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.4;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(202, 120, 66, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-nav:hover {
    background-color: rgba(181, 106, 58, 1);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav .icon {
    color: white;
    width: 1.75rem;
    height: 1.75rem;
}

.modal-nav-prev {
    left: 1rem;
}

.modal-nav-next {
    right: 1rem;
}


.works-link {
    text-align: center;
    margin-top: 2rem;
}

.works-link a {
    color: #CA7842;
    font-weight: 700;
    transition: all 0.3s;
}

.works-link a:hover {
    text-decoration: underline;
}

/* Testimonials section */
.testimonials-section {
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-0.5rem);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-header img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-right: 1rem;
}

.testimonial-header .client-name {
    font-weight: 600;
}

.testimonial-header .client-role {
    font-size: 0.875rem;
    color: #4f5a6a;
}

.testimonial-text {
    color: #3A2500;
    font-style: italic;
}

/* Contact section */
.contact-section {
    padding: 2.5rem 0;
    background-color: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    margin: 0 -1.5rem 2rem -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.contact-section.lazy-bg-loaded::before {
    background-image: image-set(
        url('481161037_624217010368134_2466176667040010952_n.avif') type('image/avif'),
        url('481161037_624217010368134_2466176667040010952_n.webp') type('image/webp')
    );
    opacity: 0.15;
}

.contact-section > * {
    position: relative;
    z-index: 1;
}

.contact-form {
    max-width: 42rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #242f3d;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #b8c4d1;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #CA7842;
    box-shadow: 0 0 0 3px rgba(202, 120, 66, 0.1);
}

.submit-button {
    background-color: #CA7842;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.125rem;
    transform: scale(1);
}

.submit-button:hover {
    background-color: #B56A3A;
    transform: scale(1.05);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    background-color: #ccc;
    transform: none;
}

.btn-loading {
    display: none;
}

.submit-button.loading .btn-text {
    display: none;
}

.submit-button.loading .btn-loading {
    display: inline;
}

/* Form Messages */
.form-message {
    background-color: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
}

.success-message {
    border-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.success-message .icon {
    color: #22c55e;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.success-message h4 {
    color: #15803d;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #166534;
    margin: 0;
}

.error-message {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.error-message .icon {
    color: #ef4444;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.error-message h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #991b1b;
    margin: 0;
}

/* Form Validation Styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Footer */
footer {
    background-color: rgba(21, 26, 37, 1);
    backdrop-filter: blur(10px);
    color: white;
    margin-top: 2rem;
}

.footer-content {
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-content h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-content p {
    color: #b8c4d1;
    margin-bottom: 2rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
}

.footer-contact-item .icon {
    margin-right: 0.5rem;
}

.footer-contact-item a {
    color: white;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: #CA7842;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: #7a8191;
    transition: all 0.3s;
    transform: scale(1);
}

.footer-social a:hover {
    color: white;
    transform: scale(1.25);
}

.footer-bottom {
    border-top: 1px solid #242f3d;
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: #4f5a6a;
}

.developer-credit {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.developer-credit a {
    color: #CA7842;
    text-decoration: none;
    transition: color 0.3s;
}

.developer-credit a:hover {
    color: #B56A3A;
    text-decoration: underline;
}

/* Fixed buttons */
.book-button {
    position: static; /* Remove posicionamento fixo para funcionar no flexbox */
    background-color: rgba(202, 120, 66, 0.85);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 50;
    transform: scale(1);
    text-decoration: none;
    will-change: transform, box-shadow, background-color;
}

.book-button:hover {
    background-color: rgba(181, 106, 58, 0.9);
    transform: scale(1.1);
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    background-color: #25D366;
    color: white;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    text-decoration: none;
    flex-shrink: 0;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
    transform: scale(1.08);
}

.whatsapp-button .icon {
    width: 1.75rem;
    height: 1.75rem;
}

/* Animação periódica discreta para chamar atenção */
.book-button.cta-pulse {
    animation: ctaPulse 900ms ease-out both;
}

@keyframes ctaPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        filter: saturate(1);
    }
    40% {
        transform: scale(1.08);
        box-shadow: 0 14px 22px -6px rgba(202, 120, 66, 0.55);
        filter: saturate(1.1);
    }
    70% {
        transform: scale(1.12);
        box-shadow: 0 18px 28px -8px rgba(202, 120, 66, 0.45);
        filter: saturate(1.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        filter: saturate(1);
    }
}

/* Respeitar utilizadores com redução de movimento */
@media (prefers-reduced-motion: reduce) {
    .book-button.cta-pulse {
        animation: none !important;
    }
}

/* Action buttons container */
.action-buttons {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    z-index: 50;
}



/* Removed old scroll buttons styles */

.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #323b47;
    color: white;
    padding: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    z-index: 50;
    display: none;
    opacity: 0.5;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #7a8191;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure only home section is visible by default, others start invisible */
.home-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure other sections start invisible */
section.fade-in:not(.home-section) {
    opacity: 0;
    transform: translateY(20px);
}



/* Legal pages styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    line-height: 1.6;
}

.legal-page h1 {
    color: #3A2500;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.legal-page .last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 0.5rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: #3A2500;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #CA7842;
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    color: #3A2500;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.legal-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: #CA7842;
    text-decoration: underline;
}

.legal-page a:hover {
    color: #B56A3A;
}

/* Contact button in navigation */
.contact-btn {
    background-color: #CA7842;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Merriweather', serif;
    font-weight: 500;
    font-size: 0.875rem;
    display: none;
}

.contact-btn:hover {
    background-color: #B56A3A;
}

/* Show contact button inside mobile menu */
.mobile-menu .mobile-contact-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* Footer legal links */
.footer-legal {
    margin: 0.5rem 0;
}

.footer-legal a {
    color: #4f5a6a;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #CA7842;
    text-decoration: underline;
}

.footer-legal span {
    color: #4f5a6a;
}

/* Utility classes */
.hidden {
    display: none !important;
}

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

/* Mobile-specific modal improvements */
@media (max-width: 767px) {
    .modal {
        padding: 0;
        display: none !important;
    }
    
    .modal.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        width: 100%;
        max-width: none;
        margin: 0;
        top: 0;
        transform: none;
        max-height: 100vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .modal-image {
        max-height: 70vh;
        width: 100%;
        object-fit: contain;
        border-radius: 0.5rem;
        margin: 0 auto;
    }
    
    .modal-overlay {
        position: relative;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        border-radius: 0 0 0.5rem 0.5rem;
        margin-top: 0;
        padding: 1rem;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        padding: 5px;
        background-color: rgba(0, 0, 0, 0.7);
        position: absolute;
        z-index: 2002;
    }

    .modal-nav {
        width: 44px;
        height: 44px;
    }

    .modal-nav-prev {
        left: 0.5rem;
    }

    .modal-nav-next {
        right: 0.5rem;
    }
    
    /* Additional mobile optimizations */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
        margin: 0 auto;
        text-align: center;
    }
    
    main {
        overflow-x: hidden;
        text-align: center;
    }
    
    /* Ensure all sections don't overflow */
    section {
        overflow-x: hidden;
        width: 100%;
        text-align: center;
    }
    
    /* Fix for home section on mobile */
    .home-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Center content in sections */
    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-content {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .about-text {
        text-align: left;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .about-image {
        margin: 0 auto 2rem auto;
        width: 100%;
        max-width: 300px;
    }
    
    .testimonials-grid {
        justify-items: center;
        gap: 1.5rem;
    }
    
    .contact-form {
        text-align: left;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        text-align: left;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        font-size: 1rem;
    }
    

    
    /* Adjust action buttons layout for mobile */
    .action-buttons {
        align-items: flex-end;
        gap: 0.625rem;
    }

    .whatsapp-button {
        width: 3rem;
        height: 3rem;
    }
    
    /* Mobile home section layout */
    .home-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        min-height: 92vh;
        margin-bottom: 1.25rem;
        margin-top: 0.75rem;
        background: transparent;
    }
    
    .home-content {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
    
    .home-image {
        width: 100%;
        height: 52vh;
        min-height: 52vh;
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        margin: 1rem 0;
        overflow: hidden;
        clip-path: inset(0 round 1rem);
        -webkit-clip-path: inset(0 round 1rem);
    }

    .home-section {
        border-radius: 1rem;
        overflow: visible;
    }

    .home-slide img {
        transform: scale(1.06);
    }
    
    /* Diminuir espaçamentos entre secções na versão mobile */
    .about-section,
    .services-section,
    .works-section,
    .testimonials-section,
    .contact-section {
        margin-bottom: 1.25rem !important;
        padding: 1.5rem 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .section-header {
        margin-bottom: 1.5rem !important;
    }
    
    /* Adicionar margens laterais para "respirar" */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .home-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Corrigir cores do texto na versão mobile */
    .home-title {
        color: #0c1018 !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    
    .home-description {
        color: #0c1018 !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .works-gallery {
        overflow: hidden;
    }

    .works-bento-viewport {
        overflow: hidden;
    }

    .works-carousel-nav {
        display: flex !important;
    }

    .works-bento {
        display: flex;
        grid-template-columns: none;
        grid-auto-rows: none;
        gap: 0;
        margin: 0;
        width: max-content;
        transition: transform 0.4s ease-in-out;
    }

    .bento-item {
        flex: 0 0 300px;
        width: 300px;
        height: 250px;
        margin: 0 0.625rem;
    }

    .bento-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .bento-item:hover {
        transform: none;
    }

    .bento-item img {
        height: 250px;
    }
}

/* Responsive design */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
    

    
    .nav-links {
        display: flex;
        align-items: center;
    }
    
    .contact-info {
        display: flex;
    }
    
    .language-links {
        display: flex;
    }
    
    .contact-btn {
        display: block;
    }
    

    
    .home-section {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        min-height: 82vh;
        height: 82vh;
    }
    
    .home-content {
        width: 50%;
        margin-bottom: 0;
        text-align: left;
        max-width: none;
    }
    
    .home-image {
        width: 100%;
    }
    
    .image-container {
        border-radius: 20rem;
    }
    
    .video-container {
        border-radius: 1rem;
    }
    
    .home-title {
        font-family: 'Merriweather', serif;
        font-size: 3.75rem;
    }
    
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .about-image {
        width: auto;
        margin-right: 3rem;
        margin-bottom: 0;
    }
    
    .about-text {
        flex: 1;
    }
    
    .experiences-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .clients-list {
        gap: 4rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-contact {
        flex-direction: row;
        gap: 2rem;
    }
    
    .swiper-slide {
        margin: 0 1.25rem;
    }
    
    /* Modal adjustments for desktop */
    .modal-content {
        width: 90%;
        max-height: 90vh;
    }
    
    .modal-image {
        max-height: 80vh;
    }
    
    .modal-overlay h4 {
        font-size: 1.5rem;
    }
    
    .modal-overlay p {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
