/*
Theme Name: Raphael Córdova — Links
Author: Agência Lead Ads
Author URI: https://agencialeadads.com.br/
Description: Página de links do Raphael Córdova. Botões editáveis no menu Links, textos em Aparência → Personalizar → Página de links e formulário de contato em modal (plugin Lead Ads — Contatos), com aviso pelo ntfy.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: raphael
*/

:root {
	--bg: #050b18;
	--ink: #ffffff;
	--muted: #b7c3dc;
	--soft: #8796b6;
	--blue: #2f6bff;
	--blue-2: #1747d6;
	--green: #25d366;
	--purple: #7b3cff;
	--font: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font); line-height: 1.4;
	background: var(--bg) radial-gradient(120% 60% at 100% 0%, rgba(47, 107, 255, .45) 0%, rgba(23, 71, 214, .12) 40%, transparent 70%) no-repeat;
}
a { color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

.rc-page { position: relative; max-width: 560px; margin: 0 auto; padding: 0 20px 28px; overflow: hidden; }

/* Topo */
.rc-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 340px; margin: 0 -20px; }
.rc-brand { position: relative; z-index: 2; padding: 56px 0 34px 20px; }
.rc-logo { display: flex; align-items: center; gap: 10px; }
.rc-logo-mark { flex: none; width: 42px; height: 50px; }
.rc-name { margin: 0; font-size: 1.55rem; line-height: 1.02; letter-spacing: .02em; }
.rc-name strong { display: block; font-weight: 800; }
.rc-name span { display: block; font-weight: 400; letter-spacing: .08em; }
.rc-taglines { margin: 22px 0 0; padding: 0; list-style: none; color: #d6deef; font-size: .62rem; font-weight: 500; letter-spacing: .26em; line-height: 2; }
.rc-photo {
	position: relative; align-self: stretch; margin-left: -40px;
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, transparent 0%, #000 34%);
	-webkit-mask-composite: source-in; mask-composite: intersect;
	mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, transparent 0%, #000 34%);
}
.rc-photo img {
	position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
	filter: saturate(.85) brightness(.82) contrast(1.08);
}
.rc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 11, 24, .7), transparent 35%), linear-gradient(200deg, rgba(47, 107, 255, .55), rgba(23, 71, 214, .15) 60%); mix-blend-mode: multiply; pointer-events: none; }

/* Botões */
.rc-links { position: relative; z-index: 3; display: grid; gap: 14px; margin-top: -6px; }
.rc-link {
	display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 14px 16px 14px 14px;
	border: 2px solid; border-radius: 22px; text-decoration: none; -webkit-tap-highlight-color: transparent;
	transition: transform .18s ease, box-shadow .18s ease;
}
.rc-link:hover, .rc-link:focus-visible { transform: translateY(-2px); }
.rc-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rc-link-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; }
.rc-link-icon .rc-icon { width: 30px; height: 30px; }
.rc-link-text { flex: 1; min-width: 0; }
.rc-link-text strong { display: block; font-size: 1.12rem; font-weight: 800; line-height: 1.12; letter-spacing: .01em; text-transform: uppercase; }
.rc-link-text span { display: block; margin-top: 4px; color: #d5ddef; font-size: .86rem; line-height: 1.3; }
.rc-link-arrow { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.rc-link-arrow .rc-icon { width: 20px; height: 20px; }

.rc-link--green { border-color: rgba(37, 211, 102, .45); background: linear-gradient(100deg, #07160f, #08111a); box-shadow: 0 0 22px rgba(37, 211, 102, .12); }
.rc-link--green .rc-link-icon { background: var(--green); }
.rc-link--green:hover { box-shadow: 0 0 30px rgba(37, 211, 102, .3); }
.rc-link--blue { border-color: #2f6bff; background: linear-gradient(100deg, #0d2a7a, #0a1a4a 70%, #0b1636); box-shadow: 0 0 24px rgba(47, 107, 255, .3); }
.rc-link--blue .rc-link-icon { background: linear-gradient(135deg, #2f6bff, #1747d6); }
.rc-link--blue:hover { box-shadow: 0 0 34px rgba(47, 107, 255, .5); }
.rc-link--purple { border-color: #7b3cff; background: linear-gradient(100deg, #2a1170, #1a0e4d 70%, #120c33); box-shadow: 0 0 24px rgba(123, 60, 255, .3); }
.rc-link--purple .rc-link-icon { background: linear-gradient(135deg, #7b3cff, #4f1fd1); }
.rc-link--purple:hover { box-shadow: 0 0 34px rgba(123, 60, 255, .5); }
.rc-link--dark { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.rc-link--dark .rc-link-icon { background: rgba(255, 255, 255, .12); }
.rc-link--dark:hover { box-shadow: 0 0 26px rgba(255, 255, 255, .12); }

/* Destaques */
.rc-features { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; padding: 0 0 26px; list-style: none; border-bottom: 1px solid; border-image: linear-gradient(90deg, transparent, #2f6bff, transparent) 1; }
.rc-features li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 6px; text-align: center; font-size: .66rem; font-weight: 500; letter-spacing: .14em; line-height: 1.35; }
.rc-features li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.rc-features .rc-icon { width: 38px; height: 38px; color: var(--blue); }

/* Rodapé */
.rc-footer { padding-top: 22px; text-align: center; }
.rc-social { display: flex; justify-content: center; gap: 22px; }
.rc-social a { display: grid; place-items: center; width: 44px; height: 44px; }
.rc-social .rc-icon { width: 26px; height: 26px; }
.rc-motto { margin: 14px 0 10px; color: var(--soft); font-size: .62rem; font-weight: 500; letter-spacing: .28em; }
.rc-copy, .rc-credit { margin: 4px 0; color: #6f7d9c; font-size: .7rem; }
.rc-credit a { text-decoration: none; }

/* Modal (estrutura e comportamento iguais aos da Brant) */
.rc-modal { display: none; position: fixed; inset: 0; z-index: 1000; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px 16px; }
.rc-modal:target, .rc-modal.is-open { display: block; }
.leadads-js .rc-modal:target { display: none; }
.leadads-js .rc-modal.is-open { display: block; }
.rc-modal-backdrop { position: fixed; inset: 0; background: rgba(3, 7, 18, .82); cursor: default; }
.rc-modal-panel { position: relative; max-width: 440px; margin: 5vh auto; padding: 36px 26px 26px; border: 1px solid rgba(47, 107, 255, .5); border-radius: 22px; background: linear-gradient(160deg, #0d1d4a, #070d20 60%); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 40px rgba(47, 107, 255, .2); animation: rc-in .22s ease-out; }
@keyframes rc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rc-modal-close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; color: var(--muted); font-size: 2rem; line-height: 44px; text-align: center; text-decoration: none; }
.rc-modal-close:hover { color: #fff; }
.rc-kicker { margin: 0 0 8px; color: #6f9bff; font-size: .68rem; font-weight: 700; letter-spacing: .24em; }
.rc-modal-title { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.rc-modal-lead, .rc-modal-success p { color: var(--muted); font-size: .92rem; }
.rc-form-message { padding: 10px 12px; border-radius: 10px; background: rgba(255, 80, 80, .15); color: #ffb4b4; font-size: .88rem; }
.rc-field { margin-bottom: 14px; }
.rc-field label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; }
.rc-field input, .rc-field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font: 16px var(--font); }
.rc-field select option { color: #0b1636; }
.rc-field input:focus, .rc-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .3); }
.rc-field input[aria-invalid="true"] { border-color: #ff6b6b; }
.rc-phone-row { display: flex; gap: 8px; }
.rc-phone-row select { flex: 0 0 132px; padding: 0 8px; font-size: 14px; }
.rc-field-error { margin: 6px 0 0; color: #ff9a9a; font-size: .8rem; }
.rc-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rc-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 6px; padding: 12px 18px; border: 0; border-radius: 14px; background: var(--green); color: #04150b; font: 800 .98rem var(--font); text-decoration: none; cursor: pointer; }
.rc-submit:hover { filter: brightness(1.08); }
.rc-submit:disabled { opacity: .7; cursor: wait; }
.rc-modal-note { margin: 12px 0 0; color: var(--soft); font-size: .74rem; }

@media (min-width: 480px) {
	.rc-name { font-size: 2rem; }
	.rc-logo-mark { width: 54px; height: 64px; }
	.rc-taglines { font-size: .72rem; }
	.rc-hero { min-height: 400px; }
	.rc-link-text strong { font-size: 1.3rem; }
	.rc-link-text span { font-size: .95rem; }
	.rc-features li { font-size: .74rem; }
}
@media (max-width: 360px) {
	.rc-name { font-size: 1.3rem; }
	.rc-taglines { font-size: .55rem; letter-spacing: .2em; }
	.rc-link-icon { width: 50px; height: 50px; }
	.rc-link-text strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.rc-link, .rc-modal-panel { transition: none; animation: none; }
}

/* Telas largas: a foto se dissolve também à direita e o brilho azul fica atrás da coluna. */
@media (min-width: 600px) {
	body { background: var(--bg) radial-gradient(700px 520px at calc(50% + 200px) 0%, rgba(47, 107, 255, .45) 0%, rgba(23, 71, 214, .12) 45%, transparent 75%) no-repeat; }
	.rc-photo {
		-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, transparent 0%, #000 30%, #000 72%, transparent 100%);
		mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, transparent 0%, #000 30%, #000 72%, transparent 100%);
	}
}
