/*
Theme Name: Rafael Melo Portfolio
Theme URI: https://rafaelmelo.inovainovando.com.br
Author: Rafael Melo
Author URI: https://www.linkedin.com/in/rafaelvmsilva/
Description: Tema WordPress de portfolio com foco em posicionamento profissional, projetos e captacao de contatos.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: rafaelmelo-portfolio
*/

:root {
    --rm-bg: #0a0c0f;
    --rm-bg-soft: #101317;
    --rm-surface: #13171d;
    --rm-surface-soft: #181d24;
    --rm-surface-alt: #1f252d;
    --rm-ink: #f5f7fa;
    --rm-muted: #9ea6b0;
    --rm-line: rgba(255, 255, 255, 0.08);
    --rm-line-strong: rgba(255, 255, 255, 0.16);
    --rm-accent: #eceff3;
    --rm-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
    --rm-radius-lg: 30px;
    --rm-radius-md: 24px;
    --rm-radius-sm: 16px;
    --rm-container: min(1280px, calc(100% - 32px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", sans-serif;
    color: var(--rm-ink);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(180deg, #0a0c0f 0%, #0f1216 100%);
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--rm-line);
    border-radius: 14px;
    padding: 16px 18px;
    background: #0f1318;
    color: var(--rm-ink);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--rm-line-strong);
}

.rm-page,
.rm-section,
.rm-footer-inner {
    width: 100%;
    padding-left: clamp(20px, 5vw, 80px);
    padding-right: clamp(20px, 5vw, 80px);
}

.rm-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    width: 100vw;
    margin: 0;
    padding: 0;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.rm-site-header.is-hidden {
    transform: translateY(-100%);
}

.rm-site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.rm-site-header.is-open {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.rm-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 90px;
    padding: 20px clamp(20px, 5vw, 80px);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rm-site-header.is-scrolled .rm-nav {
    min-height: 70px;
    padding: 12px clamp(20px, 5vw, 80px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    background: transparent;
}

.rm-site-header.is-open .rm-nav {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.rm-brand,
.rm-nav-links,
.rm-header-social {
    display: flex;
    align-items: center;
}

.rm-brand {
    min-width: max-content;
}

.rm-brand-logo {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-family: "Courier New", Courier, monospace;

@media (max-width: 1366px) {
    .rm-service-projects {
        gap: 10px;
    }

    .rm-service-project-badge {
        width: 56px;
        height: 56px;
        padding: 7px;
        border-radius: 14px;
    }
}
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--rm-ink);
}

.rm-site-header.is-scrolled .rm-brand-logo {
    font-size: 1rem;
    color: #0a0c0f;
}

.rm-site-header.is-open .rm-brand-logo {
    color: #0a0c0f;
}

.rm-brand-accent {
    color: var(--rm-accent);
    transition: color 0.3s ease;
}

.rm-site-header.is-scrolled .rm-brand-accent {
    color: #1a1d23;
}

.rm-site-header.is-open .rm-brand-accent {
    color: #1a1d23;
}

.rm-nav-links {
    gap: 28px;
}

.rm-header-social {
    gap: 14px;
}

.rm-nav-links {
    gap: 28px;
}

.rm-header-social {
    gap: 14px;
}

.rm-header-social a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--rm-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.rm-site-header.is-scrolled .rm-header-social a {
    color: #4a5568;
}

.rm-site-header.is-open .rm-header-social a {
    color: #4a5568;
}

.rm-header-social a:hover {
    color: var(--rm-ink);
    background: rgba(255, 255, 255, 0.04);
}

.rm-site-header.is-scrolled .rm-header-social a:hover {
    color: #0a0c0f;
    background: rgba(0, 0, 0, 0.05);
}

.rm-site-header.is-open .rm-header-social a:hover {
    color: #0a0c0f;
    background: rgba(0, 0, 0, 0.05);
}

.rm-nav-links a {
    position: relative;
    color: var(--rm-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rm-site-header.is-scrolled .rm-nav-links a {
    font-size: 0.75rem;
    color: #4a5568;
}

.rm-site-header.is-open .rm-nav-links a {
    color: #4a5568;
}

.rm-nav-links a:hover {
    color: var(--rm-ink);
}

.rm-site-header.is-scrolled .rm-nav-links a:hover {
    color: #0a0c0f;
}

.rm-site-header.is-open .rm-nav-links a:hover {
    color: #0a0c0f;
}

.rm-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--rm-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rm-site-header.is-scrolled .rm-nav-links a::after {
    background: #0a0c0f;
}

.rm-site-header.is-open .rm-nav-links a::after {
    background: #0a0c0f;
}

.rm-nav-links a:hover,
.rm-nav-links a.is-active {
    color: var(--rm-ink);
}

.rm-site-header.is-scrolled .rm-nav-links a.is-active {
    color: #0a0c0f;
}

.rm-site-header.is-open .rm-nav-links a.is-active {
    color: #0a0c0f;
}

.rm-nav-links a:hover::after,
.rm-nav-links a.is-active::after {
    transform: scaleX(1);
}

.rm-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.rm-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--rm-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.rm-site-header.is-scrolled .rm-menu-toggle span,
.rm-site-header.is-open .rm-menu-toggle span {
    background: #0a0c0f;
}

.rm-site-header.is-open .rm-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.rm-site-header.is-open .rm-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.rm-site-header.is-open .rm-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.rm-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.rm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rm-hero-bg-image {
    position: absolute;
    inset: 0;
    background: url("https://images.unsplash.com/photo-1605379399642-870262d3d051?q=80&w=1600&auto=format&fit=crop") center center / cover no-repeat;
    filter: grayscale(60%);
}

.rm-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 12, 15, 0.88) 0%, rgba(10, 12, 15, 0.72) 40%, rgba(10, 12, 15, 0.45) 70%, rgba(10, 12, 15, 0.82) 100%);
}

.rm-hero-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px clamp(20px, 5vw, 80px) 80px;
}

.rm-hero-copy {
    max-width: 720px;
}

.rm-section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--rm-line);
    border-radius: 999px;
    color: #d7dce3;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rm-hero-title,
.rm-section-head h2,
.rm-about-copy h3,
.rm-project-body h3,
.rm-service-card h3,
.rm-article-body h3,
.rm-contact-copy h2,
.rm-contact-form-card h3 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.rm-hero-title {
    margin-top: 18px;
    font-size: clamp(3.8rem, 8vw, 6.4rem);
    line-height: 0.94;
}

.rm-hero-dot {
    color: #d3d8de;
}

.rm-hero-lines {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.rm-hero-lines span {
    color: #d5dae1;
    font-size: clamp(1.04rem, 2vw, 1.46rem);
    font-weight: 700;
}

.rm-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    margin-top: 38px;
    padding: 0 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #0d0f12;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rm-hero-cta:hover {
    transform: translateY(-2px);
    background: #fff;
}

.rm-hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    animation: rm-float 2.4s ease-in-out infinite;
}

.rm-hero-scroll-indicator span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
}

@keyframes rm-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

.rm-about-facts,
.rm-project-tags,
.rm-contact-list {
    display: flex;
    flex-wrap: wrap;
}

.rm-about-facts {
    gap: 14px;
    margin-top: 26px;
}

.rm-project-tags span,
.rm-fact-card span {
    color: var(--rm-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rm-button:hover,
.rm-button:focus-visible {
    transform: translateY(-1px);
}

.rm-button-primary {
    background: var(--rm-accent);
    color: #0e1114;
}

.rm-button-secondary {
    border-color: var(--rm-line-strong);
    color: var(--rm-ink);
    background: transparent;
}

.rm-placeholder-card {
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    color: #d5dae1;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.rm-placeholder-card strong {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rm-placeholder-card span {
    color: var(--rm-muted);
    font-size: 0.88rem;
}

.rm-about-photo-card,
.rm-project-card,
.rm-service-card,
.rm-article-card,
.rm-fact-card,
.rm-site-footer {
    border: 1px solid var(--rm-line);
    background: linear-gradient(180deg, rgba(24, 29, 36, 0.96), rgba(17, 20, 25, 0.96));
    box-shadow: var(--rm-shadow);
}

.rm-section {
    padding: 96px 0;
}

.rm-section-head {
    max-width: 780px;
}

.rm-section-head h2,
.rm-contact-copy h2 {
    margin-top: 14px;
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.02;
}

.rm-about-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.44fr) minmax(0, 0.56fr);
    gap: 28px;
    align-items: start;
    margin-top: 30px;
}

.rm-contact-center {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.rm-about-photo-card {
    min-height: 620px;
    padding: 22px;
    border-radius: var(--rm-radius-lg);
}

.rm-about-copy p,
.rm-project-body p,
.rm-service-card p,
.rm-article-body p,
.rm-contact-copy p,
.rm-site-footer p {
    color: var(--rm-muted);
    line-height: 1.8;
}

.rm-about-copy h3 {
    font-size: 2rem;
}

.rm-about-facts {
    gap: 14px;
    margin-top: 26px;
}

.rm-fact-card {
    min-width: 180px;
    padding: 18px;
    border-radius: 18px;
}

.rm-fact-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.rm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.rm-filter-button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--rm-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--rm-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.rm-filter-button.is-active {
    background: var(--rm-accent);
    border-color: var(--rm-accent);
    color: #0d1013;
}

.rm-portfolio-grid,
.rm-services-grid,
.rm-articles-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.rm-portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rm-project-card,
.rm-service-card,
.rm-article-card,
.rm-contact-form-card {
    overflow: hidden;
    border-radius: var(--rm-radius-md);
}

.rm-project-card.is-hidden {
    display: none;
}

.rm-project-thumb,
.rm-article-thumb,
.rm-service-visual {
    min-height: 220px;
    padding: 22px;
}

.rm-project-thumb {
    position: relative;
}

.rm-project-body,
.rm-article-body,
.rm-service-card,
.rm-contact-form-card {
    padding: 24px;
}

.rm-project-body h3,
.rm-service-card h3,
.rm-article-body h3 {
    font-size: 1.24rem;
}

.rm-project-body p,
.rm-article-body p,
.rm-service-card p {
    margin: 14px 0 0;
}

.rm-project-tags,
.rm-contact-list,
.rm-site-footer-links {
    gap: 10px;
}

.rm-project-tags {
    margin-top: 16px;
}

.rm-project-tags span {
    padding: 8px 10px;
    border: 1px solid var(--rm-line);
    border-radius: 999px;
}

.rm-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-service-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.rm-service-visual {
    min-height: 130px;
    border-radius: 18px;
}

.rm-service-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--rm-line);
}

.rm-service-emoji span {
    font-size: 4rem;
    line-height: 1;
}

.rm-service-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.rm-service-project-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 8px;
    border: 1px solid var(--rm-line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rm-service-project-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
}

.rm-service-project-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rm-project-card-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a0c0f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rm-project-link-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #f3f6fa;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.rm-project-link-indicator strong {
    font-size: 1rem;
}

.rm-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-article-date {
    display: inline-block;
    margin-bottom: 10px;
    color: #d8dde3;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rm-article-link {
    display: inline-flex;
    margin-top: 18px;
    font-weight: 800;
}

.rm-article-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.rm-article-thumb-image {
    position: relative;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #13171d;
}

.rm-article-thumb-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.rm-article-thumb-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.45));
}

.rm-article-kind {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 12, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--rm-ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================
   Contact
   ========================================== */

.rm-contact-copy {
    margin-top: 40px;
}

.rm-contact-actions {
    margin-top: 36px;
}

.rm-button-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 1.1rem;
}

.rm-button-whatsapp svg {
    width: 24px;
    height: 24px;
}

.rm-contact-alternative {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--rm-line);
}

.rm-contact-alternative > p {
    margin-bottom: 20px;
    color: var(--rm-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rm-contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rm-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--rm-muted);
    font-weight: 600;
    border: 1px solid var(--rm-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.3s ease;
}

.rm-contact-item:hover {
    color: var(--rm-ink);
    border-color: var(--rm-line-strong);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.rm-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rm-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.rm-site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--rm-line);
}

.rm-footer-inner {
    text-align: center;
}

.rm-footer-inner p {
    margin: 0;
    color: var(--rm-muted);
    font-size: 0.82rem;
}

.rm-whatsapp-float {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 99;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rm-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .rm-nav {
        padding: 0 20px;
    }

    .rm-about-grid {
        grid-template-columns: 1fr;
    }

    .rm-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rm-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rm-articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .rm-site-header {
        padding: 10px 0;
    }

    .rm-nav {
        flex-wrap: wrap;
        align-items: center;
        min-height: auto;
        padding: 14px 18px;
        gap: 10px;
    }

    .rm-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .rm-brand-logo {
        font-size: 0.94rem;
    }

    .rm-menu-toggle {
        display: inline-block;
        order: 3;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .rm-header-social {
        order: 2;
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        flex: 0 0 auto;
        gap: 8px;
        padding-top: 0;
    }

    .rm-header-social a {
        width: 28px;
        height: 28px;
    }

    .rm-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-top: 10px;
        padding: 18px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
        order: 4;
    }

    .rm-site-header.is-open .rm-nav-links {
        display: flex;
    }

    .rm-hero-shell {
        padding: 100px 0 60px;
    }
}

/* ==========================================
   Página Individual de Projeto
   ========================================== */

.rm-projeto-page {
    padding-top: 90px;
}

.rm-projeto-hero {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(19, 23, 29, 0.98), rgba(10, 12, 15, 1));
}

.rm-projeto-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

.rm-projeto-breadcrumb {
    margin-bottom: 30px;
}

.rm-projeto-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rm-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.rm-projeto-breadcrumb a:hover {
    color: var(--rm-ink);
}

.rm-projeto-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.rm-projeto-subtitle {
    font-size: 1.3rem;
    color: var(--rm-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.rm-projeto-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px;
    border: 1px solid var(--rm-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.rm-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-meta-item strong {
    color: var(--rm-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rm-meta-item span {
    color: var(--rm-ink);
    font-size: 1rem;
    font-weight: 600;
}

.rm-status-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    font-size: 0.85rem !important;
}

.rm-projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.rm-projeto-tags span {
    padding: 10px 16px;
    border: 1px solid var(--rm-line);
    border-radius: 999px;
    color: var(--rm-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.rm-projeto-hero-image {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 clamp(20px, 5vw, 80px);
    border-radius: 24px;
    overflow: hidden;
}

.rm-projeto-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--rm-line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.rm-projeto-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px clamp(20px, 5vw, 80px);
}

.rm-projeto-description {
    margin-bottom: 60px;
}

.rm-projeto-description h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.rm-projeto-description p {
    color: var(--rm-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.rm-projeto-stack,
.rm-projeto-features {
    margin-bottom: 60px;
}

.rm-projeto-stack h3,
.rm-projeto-features h3,
.rm-projeto-gallery h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.rm-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.rm-stack-item {
    padding: 16px 20px;
    border: 1px solid var(--rm-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.rm-stack-item span {
    color: var(--rm-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.rm-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-features-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--rm-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.rm-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #25d366;
    font-weight: 700;
    font-size: 1.2rem;
}

.rm-projeto-gallery {
    margin-bottom: 60px;
}

.rm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.rm-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--rm-line);
}

.rm-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.rm-gallery-item:hover img {
    transform: scale(1.05);
}

.rm-projeto-cta {
    margin-bottom: 60px;
    text-align: center;
}

.rm-projeto-cta .rm-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 1rem;
}

.rm-projeto-cta .rm-button svg {
    width: 20px;
    height: 20px;
}

.rm-projeto-navigation {
    padding-top: 40px;
    border-top: 1px solid var(--rm-line);
    text-align: center;
}

.rm-nav-back .rm-button {
    min-width: 240px;
}

@media (max-width: 768px) {
    .rm-projeto-title {
        font-size: 2rem;
    }

    .rm-projeto-meta {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .rm-stack-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .rm-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rm-page,
    .rm-section,
    .rm-footer-inner {
        width: min(100% - 20px, 1280px);
    }

    .rm-nav {
        width: 100%;
        padding: 12px 14px;
        gap: 8px;
    }

    .rm-brand-logo {
        font-size: 0.86rem;
    }

    .rm-header-social {
        gap: 4px;
    }

    .rm-header-social a {
        width: 24px;
        height: 24px;
    }

    .rm-header-social a svg {
        width: 14px;
        height: 14px;
    }

    .rm-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .rm-section {
        padding: 78px 0;
    }

    .rm-portfolio-grid,
    .rm-services-grid,
    .rm-articles-grid {
        grid-template-columns: 1fr;
    }

    .rm-hero-title {
        font-size: 3.1rem;
    }

    .rm-about-photo-card {
        min-height: 440px;
    }

    .rm-whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}