/* ============================================================
   JL AYRES — Serviços
   Tema editorial escuro — navy profundo, fios de ouro,
   Cormorant Garamond + DM Sans, cantos retos
   ============================================================ */

:root {
    --gold: #D4AF37;
    --gold-light: #F0DCA0;
    --gold-dark: #A8863A;
    --gold-muted: rgba(212,175,55,0.45);
    --navy: #070D18;
    --navy-deep: #04070D;
    --navy-light: #0D1626;
    --navy-mid: #12203A;
    --off-white: #F2EDE3;
    --text: #EAE3D3;
    --text-muted: #9C9280;
    --surface: #0C1424;
    --surface-2: #101A2E;
    --hairline: rgba(212,175,55,0.10);
    --radius: 0px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'DM Sans', -apple-system, sans-serif; background: var(--navy); color: var(--text); line-height: 1.6; overflow-x: hidden; }
::selection { background: var(--gold); color: var(--navy-deep); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.grain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 180px; }

/* ---------- HEADER ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(4,7,13,0.85); backdrop-filter: blur(24px) saturate(1.2); border-bottom: 1px solid var(--hairline); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.05rem; color: var(--gold); width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-muted); border-radius: 50%; transition: all 0.35s var(--ease); }
.logo-link:hover .logo-mark { border-color: var(--gold); background: rgba(212,175,55,0.06); }
.logo-info { display: flex; flex-direction: column; }
.logo-brand { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.92rem; color: var(--off-white); letter-spacing: 4px; }
.logo-tagline { font-family: 'Cormorant Garamond', serif; font-size: 0.72rem; color: var(--gold-muted); letter-spacing: 2px; font-style: italic; }

.nav { display: flex; gap: 32px; }
.nav-link { position: relative; font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 400; color: rgba(242,237,227,0.55); text-decoration: none; letter-spacing: 2.5px; text-transform: uppercase; padding: 6px 0; transition: color 0.3s var(--ease); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.nav-link:hover { color: var(--off-white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { transform: scaleX(1); }

.menu-btn { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 10px; }
.menu-btn-line { width: 24px; height: 1.5px; background: var(--gold); transition: transform 0.4s var(--ease); }
.menu-btn.open .menu-btn-line:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.open .menu-btn-line:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 999; background: rgba(4,7,13,0.98); backdrop-filter: blur(30px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; opacity: 0; visibility: hidden; transition: all 0.5s var(--ease); }
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-link { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: var(--off-white); text-decoration: none; transition: all 0.3s; opacity: 0; transform: translateY(20px); }
.mobile-nav.open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-link:hover { color: var(--gold); }

/* ---------- HERO ---------- */
.hero-servicos { min-height: 62vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--navy-deep); padding-top: 88px; }
.hero-bg { position: absolute; inset: 0; }
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(212,175,55,0.05) 0%, transparent 60%), radial-gradient(ellipse 50% 80% at 20% 20%, rgba(18,32,58,0.5) 0%, transparent 60%), linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); }
.hero-glow { position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(212,175,55,0.07) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 90px clamp(20px, 4vw, 48px); text-align: center; }
.hero-eyebrow { display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 5px; text-transform: uppercase; color: var(--gold-muted); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.8rem, 6vw, 5rem); color: var(--off-white); line-height: 1.04; margin-bottom: 24px; }
.hero-title em { color: var(--gold); font-weight: 400; font-style: italic; }
.hero-sub { font-size: 1rem; font-weight: 300; color: var(--text-muted); max-width: 540px; margin: 0 auto 36px; line-height: 1.9; }
.hero-divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto; }

/* ---------- SERVIÇOS ---------- */
.servicos-section { padding: 110px 0 90px; position: relative; }
.servicos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.servico-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 0;
    padding: 36px 28px;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.servico-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212,175,55,0.07) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.servico-card:hover .servico-glow { opacity: 1; }
.servico-card:hover { transform: translateY(-8px); border-color: var(--gold-muted); }

.servico-card.destaque { background: var(--surface-2); border-color: var(--gold-muted); }
.servico-card.destaque h3 { color: var(--gold); }
.servico-card.destaque .servico-icon { color: var(--gold); background: rgba(212,175,55,0.07); border-color: var(--gold-muted); }
.servico-card.destaque .servico-num { color: rgba(212,175,55,0.12); }
.servico-card.destaque:hover { border-color: var(--gold); }

.servico-badge { position: absolute; top: 0; right: 24px; font-family: 'DM Sans', sans-serif; font-size: 0.55rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 7px 14px; background: var(--gold); color: var(--navy-deep); border-radius: 0; }

.servico-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }

.servico-icon { width: 54px; height: 54px; background: rgba(212,175,55,0.04); border: 1px solid var(--hairline); border-radius: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-muted); transition: all 0.4s var(--ease); }
.servico-card:hover .servico-icon { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: scale(1.06); }

.servico-num { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 600; color: rgba(242,237,227,0.05); line-height: 1; transition: color 0.3s; }
.servico-card:hover .servico-num { color: rgba(212,175,55,0.16); }

.servico-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--off-white); margin-bottom: 12px; transition: color 0.3s; }
.servico-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; font-weight: 300; }

/* ---------- CTA ---------- */
.servicos-cta { padding: 110px 0; background: var(--navy-deep); position: relative; overflow: hidden; border-top: 1px solid var(--hairline); }
.servicos-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(212,175,55,0.05) 0%, transparent 60%); }
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 620px; margin: 0 auto; }
.cta-content h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 300; color: var(--off-white); margin-bottom: 18px; line-height: 1.15; }
.cta-content h2 em { color: var(--gold); font-weight: 400; font-style: italic; }
.cta-content p { font-size: 0.95rem; font-weight: 300; color: var(--text-muted); margin-bottom: 40px; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 19px 42px;
    border: 1px solid var(--gold);
    border-radius: 0;
    background: transparent;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.4s var(--ease);
    z-index: 1;
}
.btn-cta::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform 0.45s var(--ease-out); z-index: -1; }
.btn-cta:hover { color: var(--navy-deep); }
.btn-cta:hover::before { transform: translateY(0); }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); padding: 70px 0 0; border-top: 1px solid var(--hairline); }
.footer-content { display: flex; justify-content: space-between; align-items: center; padding-bottom: 44px; flex-wrap: wrap; gap: 20px; }
.footer-contact p { color: var(--text-muted); font-size: 0.88rem; font-weight: 300; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(242,237,227,0.05); padding: 26px 0; text-align: center; }
.footer-bottom p { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); opacity: 0.5; }

/* ---------- WHATSAPP ---------- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 24px rgba(212,175,55,0.3); z-index: 999; transition: all 0.35s var(--ease); text-decoration: none; }
.whatsapp-float svg path { fill: var(--navy-deep); }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(212,175,55,0.45); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.servico-card:nth-child(1) { transition-delay: 0s; }
.servico-card:nth-child(2) { transition-delay: 0.06s; }
.servico-card:nth-child(3) { transition-delay: 0.12s; }
.servico-card:nth-child(4) { transition-delay: 0.18s; }
.servico-card:nth-child(5) { transition-delay: 0.24s; }
.servico-card:nth-child(6) { transition-delay: 0.30s; }
.servico-card:nth-child(7) { transition-delay: 0.36s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .servicos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .menu-btn { display: flex; }
    .servicos-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .footer-content { flex-direction: column; text-align: center; }
    .hero-content { padding: 60px 20px; }
}
