:root {
    --primary: #ffdf3d;
    --dark: #333333;
    --text: #333333;
    --text-muted: #666666;
    --bg-alt: #f6f6f6;
    --border: #ebebeb;
    --font-heading: 'Alata', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    --header-height: 84px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: #ffffff;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #000;
}

.highlight {
    color: var(--primary);
}

/* Preloader */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: preloader-spin 0.7s linear infinite;
}

@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

body.no-scroll {
    overflow: hidden;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    box-shadow: none;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(20, 20, 20, 0.75);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-full {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.2rem;
}

.header-socials a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.header-socials a:hover {
    color: var(--primary);
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2em;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.admin-link i {
    font-size: 1rem;
}

.nav-admin-link {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 0.9em 1.8em;
    border-radius: 0.2em;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 0.1em 0.2em rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    color: #333333;
}

/* Sections */

.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Hero */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: top right;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(51, 51, 51, 0.4);
}

/* Recorte triangular no rodapé das seções com imagem de fundo */

.section-shape {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 40px;
    z-index: 1;
}

.section-shape--white {
    color: #ffffff;
}

.section-shape--alt {
    color: var(--bg-alt);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 4.4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Projects */

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 2em;
    padding: 0.5em 1.4em;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

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

.project-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background: linear-gradient(transparent 40%, rgba(30, 30, 30, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.project-card.hidden {
    display: none;
}

/* Values */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.value-item i {
    font-size: 2.6rem;
    color: var(--primary);
}

.value-item span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

/* About hero */

.about-hero,
.contato-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 5rem 0;
}

.about-overlay,
.contato-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.about-inner,
.contato-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.about-title {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.about-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.about-item h4 {
    margin-bottom: 0.6rem;
}

.about-item p {
    color: var(--text-muted);
}

/* Testimonials */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.testimonial-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-heading);
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contato */

.contato-title {
    color: #ffffff;
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.contato-inner p {
    margin-bottom: 2rem;
}

.contato-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contato-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
}

.contato-link i {
    font-size: 1.3rem;
    color: var(--primary);
}

.contato-cta {
    margin-top: 0.5rem;
}

/* Footer */

.site-footer {
    background: var(--bg-alt);
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 2.4rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 640px) {
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 14px;
        font-size: 2rem;
    }
}

/* Whatsapp float */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 90;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* Responsive */

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.06);
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 400px;
    }

    .main-nav a {
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--border);
        color: var(--dark);
    }

    .header-inner {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
        order: 1;
    }

    .logo-link {
        order: 2;
        margin: 0 auto;
    }

    .header-socials {
        display: flex;
        order: 3;
        gap: 0.7rem;
        font-size: 1.1rem;
    }

    .header-socials .admin-link {
        display: none;
    }

    .nav-admin-link {
        display: block;
        font-weight: 700;
        color: var(--primary) !important;
    }

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

    .values-grid,
    .about-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .logo-full {
        height: 32px;
    }
}
