/* --- Tokens (espelham o tailwind.config do index.html) --- */
:root {
    --gold: #c9a45c;
    --gold-light: #e2c58b;
    --brown: #4f3117;
    --ink: #0f0c0a;
    --ink-soft: #17110d;
    --ink-card: #21180f;
    --ink-line: #3a2a1c;
    --muted: #b5a898;
    --cream: #f2efe8;
    /* granulado do acabamento fosco */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.transition-smooth {
    transition: all 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Acabamentos tom sobre tom =====
   .glass = vidro brilhoso (translucido, reflexo no topo, brilho que passa no hover)
   .matte = vidro fosco (desfoque forte, granulado, sem reflexo) */
.glass {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(255, 244, 222, 0.14) 0%, rgba(255, 244, 222, 0.03) 38%, rgba(255, 244, 222, 0) 60%),
        rgba(79, 49, 23, 0.28);
    border: 1px solid rgba(226, 197, 139, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 210, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 18px 40px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

/* faixa de brilho que atravessa o vidro */
.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(105deg, transparent, rgba(255, 240, 210, 0.16), transparent);
    transform: skewX(-20deg);
    transition: left 900ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.glass:hover::after {
    left: 130%;
}

.matte {
    background-color: rgba(33, 24, 15, 0.55);
    background-image: var(--grain);
    border: 1px solid rgba(226, 197, 139, 0.12);
    -webkit-backdrop-filter: blur(22px) saturate(110%);
    backdrop-filter: blur(22px) saturate(110%);
}

/* botao dourado com brilho de vidro */
.btn-gold {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #e2c58b 0%, #c9a45c 55%, #a8833f 100%);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.7), 0 10px 30px rgba(201, 164, 92, 0.25);
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover::after {
    left: 140%;
}

.btn-gold:hover {
    box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.8), 0 14px 36px rgba(201, 164, 92, 0.4);
}

/* botao flutuante do WhatsApp: verde oficial com reflexo de vidro */
.wa-float {
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, #3ee07a 0%, #25d366 45%, #1aa851 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 6px rgba(0, 0, 0, 0.18),
        0 12px 30px rgba(37, 211, 102, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.wa-float::before {
    content: '';
    position: absolute;
    inset: 2px 6px 50% 6px;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

/* manchas de luz marrom e dourada: dao o que o vidro refletir */
.tone-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.tone-blob--gold { background: rgba(201, 164, 92, 0.22); }
.tone-blob--brown { background: rgba(107, 68, 34, 0.45); }

/* --- Navegacao --- */
#main-nav.nav-scrolled {
    background-color: rgba(15, 12, 10, 0.6);
    background-image: var(--grain);
    -webkit-backdrop-filter: blur(22px) saturate(110%);
    backdrop-filter: blur(22px) saturate(110%);
    border-bottom: 1px solid rgba(226, 197, 139, 0.14);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(242, 239, 232, 0.75);
    transition: color 300ms;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--gold);
}

.mobile-link {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--cream);
}

.mobile-link:hover {
    color: var(--gold);
}

/* --- Hero --- */
.arch {
    border-radius: 999px 999px 8px 8px;
}

.hero-photo { animation: float 9s ease-in-out infinite; }

/* --- Titulos de secao --- */
.eyebrow {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

/* --- Carrossel de trabalhos --- */
.work-card {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
    background: var(--ink-card);
    border: 1px solid rgba(226, 197, 139, 0.18);
}

.work-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* reflexo de vidro sobre a foto */
.work-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 244, 222, 0.14) 0%, transparent 35%, transparent 70%, rgba(15, 12, 10, 0.45) 100%);
    pointer-events: none;
}

.work-card:hover img {
    transform: scale(1.06);
}

.splide__arrow {
    width: 3rem;
    height: 3rem;
    opacity: 1;
    background-color: rgba(33, 24, 15, 0.55);
    background-image: var(--grain);
    border: 1px solid rgba(226, 197, 139, 0.35);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.splide__arrow svg { fill: var(--gold); }
.splide__arrow:hover:not(:disabled) svg { fill: var(--gold-light); }
.splide__arrow:disabled { opacity: 0.4; }

.splide__pagination { bottom: -2.5rem; }
.splide__pagination__page { background: var(--ink-line); }
.splide__pagination__page.is-active { background: var(--gold); transform: scale(1.3); }

/* --- Diferenciais --- */
.why-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold-light);
}

.why-icon svg { width: 1.4rem; height: 1.4rem; }

/* --- Servicos --- */
.service-card {
    padding: 2.5rem 2rem;
    border-radius: 14px;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226, 197, 139, 0.6);
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #e2c58b 0%, #c9a45c 55%, #a8833f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.7);
    color: var(--ink);
}

.service-icon svg { width: 1.4rem; height: 1.4rem; }

/* --- FAQ --- */
.accordion-item {
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 300ms;
}

.accordion-item.is-open { border-color: rgba(226, 197, 139, 0.45); }

.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cream);
}

.accordion-toggle:hover { color: var(--gold); }

.accordion-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    color: var(--gold);
    transition: transform 300ms;
}

.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms ease-in-out;
}

.accordion-body {
    padding: 0 1.75rem 1.5rem;
    color: var(--muted);
    line-height: 1.7;
}

/* --- Rodape --- */
.footer-title {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.08em;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.footer-link {
    font-size: 0.9rem;
    color: rgba(242, 239, 232, 0.55);
    transition: color 300ms;
}

.footer-link:hover { color: var(--gold); }

/* ===== Assinatura de marca Elyontec =====
   Bloco padrao (CORE do MCP). Em fundo escuro o gradiente inicia em #4d8dff. */
.brand-elyontec {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(242, 239, 232, 0.45);
    text-transform: none;
}

.brand-elyontec-mark {
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #4d8dff, #23c7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Animacoes de entrada --- */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-content > *:nth-child(1) { transition-delay: 0.1s; }
.hero-content > *:nth-child(2) { transition-delay: 0.2s; }
.hero-content > *:nth-child(3) { transition-delay: 0.3s; }
.hero-content > *:nth-child(4) { transition-delay: 0.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-photo { animation: none; }
    .reveal-init { opacity: 1; transform: none; transition: none; }
    .glass::after, .btn-gold::after { display: none; }
}

svg {
    display: inline-block;
    vertical-align: middle;
}
