/* Lenis Smooth Scroll Base */
html.lenis,
html.lenis body {
    height: auto;
    width: 100vw;
    overflow-x: hidden;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Fontes Locais */
@font-face {
    font-family: 'Roxborough CF';
    src: url('fonts/RoxboroughCF-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roxborough CF';
    src: url('fonts/RoxboroughCF-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

/* Identidade Visual Tainá Rehder */
:root {
    --bg-color: #F5F5F5;
    --text-color: #5C4D4D;
    --accent-color: #ABABAB;
    --white: #FFFFFF;

    --font-serif: 'Roxborough', 'Roxborough CF', 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    text-transform: lowercase;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
}

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

/* Preloader - Skill Awwwards */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.preloader h1 {
    font-size: 4rem;
    letter-spacing: 0.15em;
    overflow: hidden;
    color: var(--text-color);
    font-weight: 300;
    text-transform: lowercase;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.preloader h1 span {
    display: inline-block;
    transform: translateY(100%);
}

.preloader-subtext {
    font-size: 1rem;
    letter-spacing: 0.4em;
    color: var(--text-color);
    text-transform: lowercase;
    font-family: var(--font-serif);
    overflow: hidden;
    font-weight: 300;
    margin-left: 0.4em;
}

.preloader-subtext span {
    display: inline-block;
    transform: translateY(100%);
}

/* Navbar Minimalista */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 2.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: var(--white);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.2em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-img-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120%;
    top: -10%;
    z-index: -1;
}

.hero-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    max-width: 1400px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 6.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 3.5rem;
    font-weight: 200;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Botões Magnéticos */
.btn-magnetic {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    border: 1px solid var(--white);
    border-radius: 50px;
    text-transform: lowercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.4s, color 0.4s;
    position: relative;
    overflow: hidden;
}

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

.btn-dark {
    border-color: var(--text-color);
    color: var(--text-color);
}

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

.btn-solid-dark {
    background-color: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
}

.btn-solid-dark:hover {
    background-color: transparent;
    color: var(--text-color);
}

/* Seções Globais */
.section {
    padding: 10rem 4rem;
}

/* As Rehders Section */
.rehders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
}

.portrait-img-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

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

/* Filosofia Section */
.philosophy-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.philosophy-text {
    flex: 1;
}

.philosophy-text h2 {
    font-size: clamp(3.5rem, 5vw, 5rem);
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.philosophy-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-weight: 400;
}

.philosophy-image {
    flex: 1;
}

.img-reveal-wrapper {
    width: 100%;
    height: 75vh;
    overflow: hidden;
    position: relative;
}

.img-reveal-wrapper img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
}

/* Expertise Section */
.expertise {
    background-color: var(--white);
    padding: 10rem 4rem;
}

.expertise-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 6rem;
}

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

.expertise-card {
    padding: 4rem 3rem;
    border: 1px solid rgba(92, 77, 77, 0.15);
    transition: 0.4s;
    background: var(--bg-color);
}

.expertise-card:hover {
    background: var(--text-color);
    color: var(--white);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.expertise-card h3 {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.expertise-card p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Projetos */
.projects {
    background-color: var(--bg-color);
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15rem;
    gap: 6rem;
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-img-wrapper {
    flex: 1.2;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
}

.project-info {
    flex: 0.8;
    padding: 0 2rem;
}

.project-info h3 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.project-info p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

/* Formulário de Captura */
.capture {
    background-color: var(--text-color);
    color: var(--bg-color);
    text-align: center;
    padding: 10rem 2rem;
}

.capture h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    color: var(--white);
}

.capture p {
    margin-bottom: 5rem;
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.4s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--white);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 200;
}

.form-btn {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    padding: 1.5rem;
    font-family: var(--font-sans);
    text-transform: lowercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 2rem;
    border-radius: 50px;
    transition: transform 0.4s;
}

.form-btn:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

/* Responsividade Avançada (Best Practices) */
@media (max-width: 992px) {
    .section {
        padding: 6rem 2rem;
    }

    .philosophy-grid {
        flex-direction: column;
        gap: 4rem;
    }

    .philosophy-image {
        width: 100%;
    }

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

    .rehders-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .project-item {
        flex-direction: column !important;
        margin-bottom: 6rem;
        gap: 2rem;
    }

    .project-img-wrapper {
        height: 50vh;
        width: 100%;
    }

    .project-info {
        padding: 0;
        text-align: left;
    }

    nav {
        padding: 1.5rem 2rem;
    }

    .capture {
        padding: 6rem 2rem !important;
    }

    .team-text {
        padding: 0 2rem !important;
        margin-bottom: 4rem !important;
    }
}

@media (max-width: 768px) {

    /* Ajustes de Tipografia e Botões (Estilo App) */
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .logo img {
        height: 45px;
    }

    .btn-magnetic {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 0.9rem;
    }

    .expertise-title {
        font-size: 2.5rem;
        margin-bottom: 4rem;
    }

    .expertise-card {
        padding: 3rem 2rem;
    }

    .philosophy-text h2 {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }

    /* Forçar Imagens Edge-to-Edge no Mobile e Corrigir Bug de Colapso (invisibilidade) */
    .img-reveal-wrapper,
    .project-img-wrapper,
    .portrait-img-wrapper {
        width: calc(100% + 4rem) !important;
        margin-left: -2rem !important;
        margin-right: -2rem !important;
        display: block !important;
        flex: none !important;
    }

    .img-reveal-wrapper,
    .project-img-wrapper {
        height: 50vh !important;
    }

    .portrait-img-wrapper {
        height: auto !important;
    }

    .rehder-profile h3 {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .section-intro h2 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }

    .section-intro {
        margin-bottom: 4rem !important;
    }

    .capture h2 {
        font-size: 2.5rem !important;
    }

    .capture p {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .team-image {
        height: 50vh !important;
    }
}

@media (max-width: 480px) {

    /* Ajustes para telas muito pequenas */
    .section {
        padding: 4rem 1.5rem;
    }

    nav {
        padding: 1.5rem;
    }

    .btn-magnetic {
        padding: 1.2rem 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    }

    .img-reveal-wrapper,
    .project-img-wrapper,
    .portrait-img-wrapper {
        width: calc(100% + 3rem) !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
    }
}