/* Reset CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #21322B;
    position: relative;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

address {
    font-style: normal;
    font-family: sans-serif;
}

/* Variables */
:root {
    --color-bg-primary: #e8e4dc;
    --color-bg-secondary: #f5f3ee;
    --color-dark-green: #2d4740;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-light: #6a6a6a;
    --color-accent-yellow: #d4af37;
    --color-white: #ffffff;
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-height: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 0 10px #0000002b;
}

.container-header {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-list {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    font-family: 'WS Paradose';
    color: #21322c;
    transition: color 0.2s ease;
    padding: 8px 16px;
    font-size: 18px;
}

.nav-link:hover {
    color: #F2C125;
}

.btn-contacto {
    white-space: nowrap;
    font-family: 'Ws Paradose';
    font-size: 18px;
    background-color: #21322B;
    color: #F2C125;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    background-color: #F2C125;
    color: #21322B;
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    color: #21322B;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.nav-close {
    display: none;
}

/* ===============================================
   HERO SECTION WITH VIDEO
   =============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

/* Video Background Hero */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay do Hero */
.hero-video-bg .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(2deg, #ffffff, #eae6d28c);
    z-index: 1;
}

/* Conteúdo Hero sobre o vídeo */
.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 300;
}

.hero-title {
    font-size: 90px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #21322B;
    font-family: 'Ws Paradose';
}

.arrow-group {
    display: inline-flex;
}

.arrow-group img {
    max-height: 40px;
}

.btn-primary {
    white-space: nowrap;
    font-family: "Ws Paradose";
    font-size: 18px;
    background-color: #21322B;
    color: #F2C125;
    padding: 8px 16px;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #F2C125;
    color: #21322B;
    transform: translateY(-2px);
}

/* Sections */
.servicos {
    background: #f4f4f4;
    position: relative;
    z-index: 1;
}

.quem-somos {
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.quem-somos .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

section {
    padding: 8rem 0;
}

.section-title {
    font-size: 64px;
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: 'Ws Paradose';
    position: relative;
    color: #21322B;
    display: inline-block;
    line-height: 1.2;
}

.section-title .angle {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -16px;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-family: sans-serif;
    color: #21322B;
    margin-bottom: 3rem;
}

.section-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: #21322B;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-family: sans-serif;
}

.section-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Abordagem */
.abordagem {
    background: #21322B;
    position: relative;
    z-index: 1;
}

.abordagem .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.abordagem .section-content h2 {
    color: #EAE6D2 !important;
}

.abordagem .section-content p {
    color: #f5f3ee !important;
}

.abordagem .section-content strong {
    color: #f5f3ee !important;
}

.text-side {
    max-width: 700px;
}

.star-decoration {
    width: 200px;
    display: flex;
    margin: auto;
    justify-content: center;
}

/* ===============================================
   ACCORDION (SERVIÇOS)
   =============================================== */
.accordion {
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: bold;
    color: #21322B;
    text-align: left;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--color-dark-green);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding-bottom: 2rem;
}

.accordion-content p {
    color: var(--color-text-secondary);
    line-height: 1.4;
    font-family: sans-serif;
}

/* Service Lists */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content .service-list li {
    font-family: sans-serif;
    display: flex;
    column-gap: 8px;
    flex-direction: row;
    line-height: 1.4;
    margin: 1rem 0;
    align-items: flex-start;
    color: var(--color-text-secondary);
}

.accordion-content .service-list li img {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Service Sublists */
.service-sublist {
    margin: 0.75rem 0 0 1.5rem;
    list-style: none;
    padding: 0;
}

.service-sublist li {
    display: grid;
    grid-template-columns: auto 1fr;
    position: relative;
    padding-left: 1.8rem;
    margin: 0.625rem 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-sublist li img {
    position: absolute;
    left: 0;
    top: 2px;
}

/* ===============================================
    QUOTE SECTION WITH VIDEO
=============================================== */

.quote-section {
    background: #21322B;
    color: var(--color-white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Video Background Quote */
.quote-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.quote-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay da Quote */
.quote-video-bg .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, #21322B, #21322b93);
    z-index: 1;
}

/* Conteúdo Quote sobre o vídeo */
.quote-section .container {
    position: relative;
    z-index: 10;
}

.quote {
    margin: 0 auto;
    text-align: center;
}

.quote strong {
    color: #ffffff;
}

.quote p {
    font-family: 'Ws Paradose';
    font-size: 72px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #EAE6D2;
}

.quote cite {
    display: block;
    font-size: 0.9rem;
    color: #F2C125;
    font-style: normal;
    letter-spacing: 1px;
    font-family: sans-serif;
}

.separator-angle {
    position: absolute;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background-color: #ffffff;
    padding: 8rem 0 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 6rem;
    align-items: center;
}

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

.footer-info h3 {
    font-family: var(--font-secondary);
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #21322B;
}

.footer-info address p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: var(--color-dark-green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.footer-credits img {
    display: inline-block;
    margin-left: 8px;
}

/* ===============================================
   CONTACT MODAL
   =============================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    border-radius: 8px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #21322B;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #6b8f7a;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-title {
    font-family: 'Ws Paradose', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #21322B;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid;
    background: #ffffff;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #21322B;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b8f7a;
    box-shadow: 0 0 0 3px rgba(107, 143, 122, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2321322B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

.form-group select option {
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-secondary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn-secondary {
    font-family: 'Ws Paradose', serif;
    font-size: 1.125rem;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #21322B;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-secondary:hover {
    color: #6b8f7a;
}

.btn-submit {
    font-family: 'Ws Paradose', serif;
    font-size: 1.125rem;
    padding: 8px 16px;
    border: none;
    background: #21322B;
    color: #F2C125;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #F2C125;
    color: #21322B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 193, 37, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
    .nav-list {
        gap: 0.4rem;
    }

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

    .quote p {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(232, 228, 220, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 2000;
    }

    .nav.active {
        right: 0;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 30px;
        height: 30px;
    }

    .nav-close span {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color-text-primary);
        top: 50%;
        left: 0;
    }

    .nav-close span:first-child {
        transform: rotate(45deg);
    }

    .nav-close span:last-child {
        transform: rotate(-45deg);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 4rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .quem-somos .section-content,
    .abordagem .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        margin: auto;
    }

    .footer-content {
        text-align: center;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    section {
        padding: 6rem 0;
    }

    /* Modal Responsive */
    .modal-container {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }
    
    .modal-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-secondary,
    .btn-submit {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 48px;
    }

    .quote p {
        font-size: 36px;
    }

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

    .container,
    .container-header {
        padding: 0 1rem;
    }

    .logo img {
        max-width: 180px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .accordion-header {
        padding: 1.5rem 0;
        font-size: 18px;
    }

    .footer {
        padding: 6rem 0 2rem 0;
    }

    /* Otimizar vídeos para mobile */
    .hero-video-bg video,
    .quote-video-bg video {
        min-width: 110%;
        min-height: 110%;
    }

    /* Modal Mobile */
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-container {
        padding: 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.875rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.875rem;
    }
}

/* ===============================================
   PERFORMANCE & ACCESSIBILITY
   =============================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-video-bg video,
    .quote-video-bg video {
        animation-play-state: paused;
    }
    
    .modal-overlay,
    .modal-container,
    .modal-close,
    .btn-submit,
    .btn-secondary {
        transition: none;
    }
}