/* =========================================
   RB STUDIO - style.css
   ========================================= */

:root {
    --primary: #171717;
    --background: #F6F4F1;
    --secondary: #666666;
    --border: #D9D6D2;
    --accent: #73705E;
    --white: #FFFFFF;

    --header-h: 90px;
    --pad-x: clamp(20px, 5vw, 80px);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* =========================================
   BASE
   ========================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--background);
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

section {
    padding: clamp(80px, 12vw, 120px) var(--pad-x);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.mini-title {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* =========================================
   HEADER
   ========================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    padding: 0 40px;
    background: rgba(246, 244, 241, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 130px;
    width: auto;
}

.logo-texto {
    font-size: 30px;
    font-weight: 700;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color .3s;
}

nav a:hover {
    color: var(--accent);
}

.menu-mobile {
    display: none;
}

/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: calc(100vh - 70px);
    min-height: calc(100svh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 140px 20px 150px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    background: rgba(115, 112, 94, .06);
    border-radius: 50%;
    top: -250px;
    right: -180px;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.25rem);
    font-weight: 700;
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    color: var(--secondary);
}

.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 38px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: .35s;
    border: 2px solid var(--primary);
    margin-top: 25px;
}

.botao:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(115, 112, 94, .25);
}

/* Animação de entrada */
.hero h1,
.hero p,
.hero .botao {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFade .7s ease forwards;
}

.hero p {
    animation-delay: .15s;
}

.hero .botao {
    animation-delay: .3s;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FAIXA EM MOVIMENTO
   ========================================= */

.faixa-movimento {
    width: 100%;
    overflow: hidden;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 24px 0;
}

.faixa-track {
    display: flex;
    width: max-content;
    animation: faixaDeslizar 45s linear infinite;
    will-change: transform;
}

.faixa-conteudo {
    display: flex;
    align-items: center;
    gap: 55px;
    padding-right: 55px;
    white-space: nowrap;
}

.faixa-conteudo span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--background);
}

.faixa-conteudo span::after {
    content: "✦";
    margin-left: 55px;
    color: var(--accent);
    font-size: 11px;
}

@keyframes faixaDeslizar {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================
   SERVIÇOS
   ========================================= */

.servicos {
    padding-top: clamp(80px, 12vw, 150px);
    padding-bottom: clamp(80px, 12vw, 150px);
    background: var(--background);
}

.servicos-header {
    max-width: 1200px;
    margin: 0 auto clamp(50px, 7vw, 90px);
}

.servicos-header .mini-title {
    margin-bottom: 30px;
}

.servicos-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 80px;
}

.servicos-heading h2 {
    max-width: 760px;
    font-size: clamp(2.2rem, 5vw, 3.625rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.034em;
}

.servicos-heading > p {
    max-width: 360px;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary);
}

.servicos-lista {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.servico-linha {
    display: grid;
    grid-template-columns: 90px 1fr 60px;
    align-items: center;
    min-height: 170px;
    padding: 30px 10px;
    border-bottom: 1px solid var(--border);
    transition:
        padding .7s var(--ease),
        background-color .7s var(--ease);
}

.servico-numero {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--accent);
}

.servico-nome {
    padding-right: 50px;
}

.servico-nome h3 {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.024em;
    transition:
        color .6s var(--ease),
        transform .6s var(--ease);
}

.servico-nome p {
    max-width: 580px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--secondary);
}

.servico-seta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    font-size: 20px;
    font-variant-emoji: text;
    color: var(--primary);
    transition:
        transform .6s var(--ease),
        background-color .6s var(--ease),
        border-color .6s var(--ease),
        color .6s var(--ease);
}

/* =========================================
   PORQUE ESCOLHER A RB STUDIO
   ========================================= */

.porque {
    padding-top: clamp(90px, 14vw, 170px);
    padding-bottom: clamp(90px, 14vw, 170px);
    background: var(--white);
}

.porque-header {
    max-width: 1200px;
    margin: 0 auto;
}

.porque-header .mini-title {
    margin-bottom: 35px;
}

.porque-header h2 {
    max-width: 800px;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.037em;
}

.porque-intro {
    max-width: 500px;
    margin: 35px 0 0 auto;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.8;
}

.porque-manifesto {
    max-width: 1200px;
    margin: clamp(70px, 10vw, 150px) auto;
    border-top: 1px solid var(--border);
}

.porque-frase {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.porque-frase span {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: -.03em;
    transition:
        color .6s var(--ease),
        transform .6s var(--ease);
}

.porque-frase p {
    color: var(--secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.porque-detalhes {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.porque-detalhe {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.porque-detalhe > span {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
}

.porque-detalhe h3 {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 500;
}

.porque-detalhe p {
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================
   PORTFÓLIO
   ========================================= */

.portfolio {
    background: var(--background);
}

.portfolio h2 {
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 2.625rem);
    margin-bottom: clamp(40px, 6vw, 70px);
}

.portfolio .mini-title {
    text-align: center;
}

.portfolio-list {
    max-width: 1100px;
    margin: auto;
}

.portfolio-item {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
}

.portfolio-item:last-child {
    margin-bottom: 0;
}

.portfolio-image {
    width: 55%;
    height: 420px;
    background: #D9D6D2;
    border-radius: 20px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    flex: 1;
}

.portfolio-tag {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}

.portfolio-info h3 {
    font-size: clamp(2rem, 4.5vw, 2.625rem);
    margin: 20px 0;
}

.portfolio-info p {
    color: var(--secondary);
    line-height: 1.9;
    margin-bottom: 30px;
}

.portfolio-link {
    display: inline-block;
    background: var(--accent);
    color: var(--background);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.portfolio-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* =========================================
   SOBRE NÓS
   ========================================= */

.sobre {
    max-width: 1100px;
    margin: auto;
}

.sobre .mini-title {
    text-align: center;
}

.sobre h2 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    margin-bottom: 35px;
    text-align: center;
}

.sobre-texto {
    color: var(--secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.9;
    margin-bottom: clamp(50px, 7vw, 80px);
}

.valores {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.valores > div {
    flex: 1;
}

.valores h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.valores p {
    color: var(--secondary);
    line-height: 1.9;
}

/* =========================================
   CONTACTOS
   ========================================= */

.contactos {
    text-align: center;
    background: var(--white);
}

.contactos h2 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    margin-bottom: 25px;
}

.contacto-texto {
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.9;
}

.contacto-botoes {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contacto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.contacto-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-4px);
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    background: var(--primary);
    padding: 70px 20px 30px;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-marca {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.footer-descricao {
    color: var(--accent);
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--accent);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: color .3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    color: var(--accent);
    font-size: 15px;
}

/* =========================================
   HOVER (apenas dispositivos com rato)
   ========================================= */

@media (hover: hover) and (pointer: fine) {

    .servico-linha:hover {
        padding-left: 25px;
        padding-right: 25px;
        background: rgba(115, 112, 94, .10);
    }

    .servico-linha:hover .servico-nome h3 {
        color: var(--accent);
        transform: translateX(8px);
    }

    .servico-linha:hover .servico-seta {
        transform: rotate(45deg);
        background: var(--accent);
        border-color: var(--accent);
        color: var(--background);
    }

    .porque-frase:hover span {
        color: var(--accent);
        transform: translateX(10px);
    }
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {

    header {
        padding: 0 30px;
    }

    nav {
        gap: 28px;
    }

    nav a {
        font-size: 16px;
    }

    .servicos-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .porque-intro {
        margin-left: 0;
    }

    .porque-detalhes {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .porque-detalhe {
        gap: 15px;
    }

    .portfolio-item {
        flex-direction: column;
        gap: 35px;
        align-items: stretch;
        margin-bottom: 70px;
    }

    .portfolio-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* =========================================
   TELEMÓVEL + MENU MOBILE
   ========================================= */

@media (max-width: 768px) {

    header {
        padding: 0 20px;
    }

    .logo img {
        height: 100px;
    }

    .logo-texto {
        font-size: 22px;
    }

    .menu-mobile {
        display: block;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        font-size: 26px;
        line-height: 1;
        color: var(--primary);
        cursor: pointer;
        padding: 10px;
    }

    nav {
        display: none;
    }

    nav.menu-aberto {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 30px 20px;
        background: var(--background);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        z-index: 1000;
    }

    nav.menu-aberto a {
        font-size: 16px;
    }

    .hero {
        padding: 120px 20px 100px;
    }

    .hero h1 {
        margin-bottom: 10px;
    }

    .mini-title {
        letter-spacing: 3px;
        font-size: 13px;
    }

    .servico-linha {
        grid-template-columns: 44px 1fr 40px;
        min-height: 0;
        padding: 26px 0;
    }

    .servico-nome {
        padding-right: 20px;
    }

    .servico-seta {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .porque-frase {
        padding: 22px 0;
    }

    .valores {
        flex-direction: column;
        gap: 40px;
    }

    .valores h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .contacto-botoes {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        max-width: 360px;
        margin: 0 auto;
    }

    footer {
        padding: 55px 20px 30px;
    }

    .footer-links {
        gap: 20px 28px;
    }
}

/* =========================================
   ACESSIBILIDADE: MOVIMENTO REDUZIDO
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero h1,
    .hero p,
    .hero .botao {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .faixa-track {
        animation: none;
    }
}