/* ═══════════════════════════════════════════════════
   PROJECT PAGE — CMS Template Styles
   Diferente Arte · 2024
   ═══════════════════════════════════════════════════ */

/* ─── FONTES PROPRIAS (self-hosted em fonts/) ─── */
@font-face { font-family:'Acumin Pro'; src:url('fonts/AcuminPro-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Acumin Pro'; src:url('fonts/AcuminPro-Italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Acumin Pro'; src:url('fonts/AcuminPro-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Acumin Pro'; src:url('fonts/AcuminPro-BoldItalic.woff2') format('woff2'); font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:'Laroza'; src:url('fonts/Laroza.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Allerick'; src:url('fonts/Allerick.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }

/* ─── VARIABLES (shared across site) ─── */
:root {
    --bg: #0a0a0a; --fg: #f5f5f0; --accent: #c8ff00;
    --muted: #888; --border: rgba(255,255,255,0.08);
    --mono: 'Space Grotesk', monospace;
    --sans: 'Acumin Pro', 'Inter', sans-serif;        /* corpo / UI */
    --display: 'Laroza', Georgia, serif;              /* titulos grandes */
    --label: 'Allerick', 'Space Grotesk', sans-serif; /* logo / rotulos */
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg) url('assets/bg/preto.webp') center center / cover fixed;
    color: var(--fg);
    overflow-x: hidden; line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── PAGE CURTAIN (entrance) ─── */
.page-curtain {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg) url('assets/bg/preto.webp') center center / cover;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.page-curtain .curtain-logo {
    font-family: var(--label); font-size: clamp(1.5rem,4vw,2.5rem);
    font-weight: 700; color: var(--fg); text-align: center;
    letter-spacing: 0.02em;
    opacity: 0; transform: translateY(20px);
}
.page-curtain .curtain-logo::before {
    content: ''; display: block; width: 64px; height: 64px; margin: 0 auto 18px;
    background: url('assets/symbol-white.png') center/contain no-repeat;
}

/* ─── ARRIVAL IMAGE (AVEC-style morph) ─── */
.arrival-image {
    position: fixed; inset: 0; z-index: 9998;
    background: transparent;
    overflow: visible;
    visibility: hidden;
    opacity: 1;
    pointer-events: none;
}
.arrival-image.active { visibility: visible; }
.arrival-image img {
    object-fit: cover;
    /* width/height controlled by GSAP during morph */
}

/* ─── HEADER ─── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 40px;
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.header.scrolled {
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: var(--label); font-size: 1.2rem; font-weight: 700;
    color: var(--fg); letter-spacing: 0.02em;
    display: inline-flex; align-items: center; gap: 0.45em;
}
.logo::before {
    content: ''; display: inline-block;
    width: 1.5em; height: 1.5em; flex-shrink: 0;
    background: url('assets/symbol-white.png') center/contain no-repeat;
}
.logo span { color: inherit; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fg); opacity: 0.6;
    transition: opacity 0.3s ease;
}
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 20px; border-radius: 999px;
    background: var(--fg); color: var(--bg) !important;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; opacity: 1 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(200,255,0,0.15); }
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span {
    width: 24px; height: 2px; background: var(--fg);
    transition: 0.3s;
}

/* ─── MOBILE OVERLAY ─── */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(10,10,10,0.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay a {
    font-size: 1.5rem; color: var(--fg);
    font-family: var(--mono); font-weight: 600;
}

/* ─── PROJECT HERO ─── */
.project-hero {
    position: relative;
    width: 100%; height: 70vh; min-height: 400px;
    overflow: hidden;
    margin-top: 72px;
}
.project-hero-img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0;
}
.project-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}
.project-hero-content {
    position: absolute; bottom: 40px; left: 40px; right: 40px;
    max-width: 900px;
}
.project-hero-tag {
    font-family: var(--mono); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 12px;
    opacity: 0; transform: translateY(20px);
}
.project-hero-title {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700; line-height: 1.05;
    opacity: 0; transform: translateY(30px);
}
.project-hero-title em {
    font-style: italic; color: var(--accent);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
    padding: 20px 40px;
    font-size: 0.75rem; color: var(--muted);
    font-family: var(--mono); letter-spacing: 0.05em;
    text-transform: uppercase;
}
.breadcrumb a { color: var(--muted); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent); }

/* ─── CONTENT ─── */
.project-content {
    max-width: 900px; margin: 0 auto;
    padding: 60px 40px 80px;
}
.project-content h2 {
    font-size: 1.6rem; font-weight: 700;
    margin-bottom: 20px; color: var(--fg);
}
.project-content p {
    font-size: 1rem; color: var(--muted);
    line-height: 1.8; margin-bottom: 24px;
}
.project-content .highlight {
    color: var(--fg); font-weight: 600;
}
.project-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; margin: 40px 0;
}
.project-gallery img {
    width: 100%; height: 260px; object-fit: cover;
    border-radius: var(--radius);
    opacity: 0; transform: translateY(30px);
}

/* ─── CTA BACK ─── */
.project-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--muted);
    font-family: var(--mono); letter-spacing: 0.05em;
    text-transform: uppercase; padding: 12px 0;
    transition: color 0.3s;
}
.project-back:hover { color: var(--accent); }
.project-back svg {
    width: 18px; height: 18px; stroke: currentColor;
    stroke-width: 2; fill: none;
}

/* ─── RELATED PROJECTS ─── */
.related-section {
    padding: 60px 40px 80px;
    border-top: 1px solid var(--border);
}
.related-section h3 {
    font-family: var(--mono); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 32px;
    text-align: center;
}
.related-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto;
}
.related-card {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius); aspect-ratio: 16/10;
    cursor: pointer;
}
.related-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.related-card:hover img { transform: scale(1.05); }
.related-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
}
.related-card-tag {
    font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--accent);
    font-family: var(--mono); margin-bottom: 4px;
}
.related-card-title {
    font-size: 1rem; font-weight: 600; color: var(--fg);
}

/* ─── FOOTER ─── */
.footer { padding: 60px 40px; border-top: 1px solid var(--border); }
.footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.footer-links h4, .footer-contact h4 {
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.footer-links a {
    display: block; font-size: 0.85rem; color: var(--muted);
    padding: 4px 0; transition: color 0.3s;
}
.footer-links a:hover { color: var(--fg); }
.footer-contact p, .footer-contact a {
    font-size: 0.85rem; color: var(--muted); line-height: 1.8;
}
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1400px; margin: 40px auto 0;
    padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--muted);
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { transition: color 0.3s; }
.footer-socials a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .header { padding: 16px 20px; }
    .project-hero { height: 50vh; min-height: 300px; margin-top: 60px; }
    .project-hero-content { bottom: 24px; left: 20px; right: 20px; }
    .breadcrumb { padding: 16px 20px; }
    .project-content { padding: 40px 20px 60px; }
    .project-gallery { grid-template-columns: 1fr; }
    .related-section { padding: 40px 20px 60px; }
    .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer { padding: 40px 20px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}
