:root {
    /* Color Palette - Pure Black */
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-dim: #a0a0a0;
    --color-gold-light: #d4b57b;
    --color-gold: #c39a5c;
    --color-gold-dark: #8c6a38;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-accent: 'Playfair Display', serif;

    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background-color: #000;
}

body,
a,
button {
    cursor: none;
}

/* Base Setup */
body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

/* Cursor Customization */
.cursor {
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    /* Removed mix-blend-mode per user request to not alter logo/menu colors */
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    /* Removed mix-blend-mode */
    transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
}

body.hovering .cursor {
    width: 40px;
    height: 40px;
    background: rgba(195, 154, 92, 0.2);
    border: 1px solid var(--color-gold);
}

body.hovering .cursor-follower {
    opacity: 0;
}

/* Textures & Backgrounds */
.noise {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9000;
}

.city-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/fundo-site.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.font-thin {
    font-weight: 100;
}

.font-light {
    font-weight: 200;
}

.mt-2 {
    margin-top: 2rem;
}

.serif-detail {
    font-family: var(--font-accent);
    font-weight: 400;
    font-style: italic;
}

.italic-gold {
    color: var(--color-gold);
    font-style: italic;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.preloader-counter {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 100;
    color: var(--color-gold);
    letter-spacing: -2px;
}

.preloader-text {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-text-dim);
}

.container {
    padding: 0 10vw;
    margin: 0 auto;
    max-width: 1600px;
}

.huge-light-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    font-weight: 200;
    line-height: 1.1;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.body-text-thin {
    font-size: 1.25rem;
    font-weight: 200;
    color: var(--color-text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Navigation */
.nav-minimal {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.5rem 10vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease;
}

.nav-minimal.nav-scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 10vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
    height: 70px;
    /* Highlighted logo / bigger */
    transition: transform 0.4s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 4rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hamburger Menu Button */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    cursor: none;
    z-index: 2001;
    /* Above fullscreen menu */
}

.nav-menu-btn span {
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.fullscreen-menu.active {
    top: 0;
}

.menu-close {
    position: absolute;
    top: 3rem;
    right: 5vw;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    cursor: none;
}

.menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.menu-link {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 200;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s;
}

.menu-link:hover {
    color: var(--color-gold);
}

.menu-footer {
    position: absolute;
    bottom: 3rem;
}

.menu-emblem {
    height: 40px;
    opacity: 0.3;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-center {
    width: 100%;
    padding-left: 10vw;
    margin-top: -5vh;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 9rem);
    /* Decreased title size */
    line-height: 0.95;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 3;
}

.title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

.title-line.serif-detail {
    text-transform: none;
    font-size: clamp(3rem, 11vw, 11rem);
    /* Adjusted size for better horizontal fit */
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Square Logo Floating Emblem */
.hero-emblem {
    position: absolute;
    right: 15vw;
    top: 40%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
}

.emblem-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-bottom {
    position: absolute;
    bottom: 5vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-desc {
    max-width: 500px;
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--color-text-dim);
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.5);
    /* subtle backdrop */
    padding: 10px;
    border-radius: 4px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(195, 154, 92, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--color-gold);
    animation: scrollDrop 2s infinite ease-in-out;
}

@keyframes scrollDrop {
    0% {
        top: -60px;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* About Section */
.about-expansive {
    padding: 15rem 0 10rem;
    position: relative;
}

.container-flex {
    display: flex;
    justify-content: space-between;
    gap: 8rem;
}

.about-left {
    flex: 1;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--color-gold);
    margin-bottom: 4rem;
}

.about-right {
    flex: 1;
    padding-top: 5rem;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin-bottom: 3rem;
}

.btn-line {
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 3rem;
    padding-bottom: 1rem;
    position: relative;
}

.btn-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transition: var(--transition);
}

.btn-line:hover .btn-hover-line {
    background: var(--color-gold);
}

/* Services */
.services-list-section {
    padding: 10rem 0;
}

.section-header-center {
    text-align: center;
    margin-bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.serif-number {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.services-accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.service-row {
    display: flex;
    align-items: flex-start;
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    gap: 4rem;
}

.service-row:last-child {
    border-bottom: 1px solid var(--color-border);
}

.s-left {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.s-icon {
    display: flex;
    align-items: center;
    margin-top: 0.2rem;
}

.s-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.2;
}

.s-right {
    flex: 1;
    padding-top: 0.5rem;
}


/* Parallax background Divider */
.visual-reveal {
    height: 60vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.reveal-bg {
    width: 100%;
    height: 130%;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.5), rgba(10, 10, 10, 0.5)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: -15%;
    left: 0;
    filter: grayscale(100%);
}

/* Marquee Subtle */
.marquee-subtle {
    padding: 5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-inner {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-inner span {
    padding-right: 2rem;
}

.marquee-inner .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

/* Team Grid For 5 */
.team-five {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.team-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2vw;
    margin-top: 4rem;
}

.team-card {
    display: flex;
    flex-direction: column;
}

.t-image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blur-effect {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111, #222);
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover .blur-effect {
    transform: scale(1.05);
}

.t-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.t-name {
    font-size: 1.25rem;
}

.t-role {
    font-size: 0.85rem;
    color: var(--color-gold);
}


/* Footer Clean */
.footer-clean {
    padding-top: 8rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 8rem;
    margin-bottom: 8rem;
}

.f-left,
.f-right {
    flex: 1;
}

.huge-email {
    display: block;
    margin-top: 4rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 100;
    transition: color 0.4s;
    letter-spacing: -1px;
}

.huge-email:hover {
    color: var(--color-gold);
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 1rem;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-row label {
    font-size: 1.1rem;
    color: var(--color-gold);
}

.input-row input,
.input-row textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 200;
    color: var(--color-text);
    transition: border-color 0.4s;
    resize: none;
}

.input-row input:focus,
.input-row textarea:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

.btn-submit {
    background: var(--color-gold);
    border: 1px solid var(--color-gold);
    color: var(--color-bg);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1.2rem 2.5rem;
    transition: all 0.4s;
    align-self: flex-start;
    border-radius: 40px;
}

.btn-submit:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-bg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5vw;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-dim);
}

.social-links {
    display: flex;
    gap: 3rem;
}

.social-links a {
    text-decoration: none;
    color: var(--color-text);
}

.logo-img-bottom {
    height: 40px;
    /* Enhanced visibility */
    opacity: 0.6;
}


/* Media Queries */
@media (max-width: 1200px) {
    .container-flex {
        flex-direction: column;
        gap: 4rem;
    }

    .about-right {
        padding-top: 0;
    }

    .footer-grid {
        flex-direction: column;
        gap: 5rem;
    }

    .team-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-emblem {
        right: 5vw;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-minimal {
        padding: 1.5rem 8vw;
    }

    .nav-menu-btn {
        display: flex;
    }

    .container {
        width: 80vw;
        max-width: 80vw;
        padding: 0;
        margin: 0 auto;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 25vh;
        padding-bottom: 5vh;
        justify-content: flex-start;
    }

    .hero-center {
        padding-left: 10vw;
        padding-right: 10vw;
    }

    .hero-bottom {
        position: relative;
        bottom: auto;
        margin-top: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .service-row {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 0;
    }

    .s-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .team-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-emblem {
        display: none;
    }

    .about-expansive {
        padding: 6rem 0 4rem;
    }

    .services-list-section {
        padding: 4rem 0;
    }

    .team-five {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .footer-clean {
        padding-top: 4rem;
    }

    .section-header-center {
        margin-bottom: 4rem;
    }

    .huge-email {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 50px;
    }

    .clean-form {
        margin-top: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 9rem);
        margin-bottom: 2rem;
    }
}

@media (max-width: 500px) {
    .team-grid-5 {
        grid-template-columns: 1fr;
    }

    .menu-link {
        font-size: 2rem;
    }
}
