/*
Theme Name: VISID
Theme URI: https://visid.com.br
Author: VISID
Author URI: https://visid.com.br
Description: Tema personalizado da VISID — agência de branding, design e performance.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: visid
*/

/* ==========================================================================
   VISID — estilos gerais
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg-soft: #0a0c16;
  --text: #f4f5f9;
  --text-muted: rgba(244, 245, 249, 0.62);
  --text-faint: rgba(244, 245, 249, 0.38);
  --border: rgba(244, 245, 249, 0.10);
  --glass-bg: rgba(20, 22, 34, 0.45);
  --glass-border: rgba(244, 245, 249, 0.14);
  --accent-blue: #2f3ea6;
  --accent-purple: #6a3fb0;
  --accent-pink: #b23f7e;
  --radius: 18px;
  --max-width: 1180px;
  --section-pad-y: clamp(96px, 14vw, 200px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 600; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-soft);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- layout helpers ---------- */

.section {
  position: relative;
  width: 100%;
  padding: var(--section-pad-y) 24px;
  overflow: hidden;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ---------- floating liquid-glass nav ---------- */

.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: padding 0.35s ease, background 0.35s ease;
  max-width: calc(100vw - 32px);
}

.floating-nav.scrolled {
  padding: 9px 22px;
  background: rgba(10, 11, 20, 0.6);
}

.nav-logo img { height: 14px; width: auto; opacity: 0.95; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-muted);
  padding: 4px 2px;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  background: rgba(244, 245, 249, 0.06);
  color: var(--text);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: rgba(244, 245, 249, 0.12);
  border-color: rgba(244, 245, 249, 0.28);
  transform: translateY(-1px);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

/* ---------- hero (home) ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--section-pad-y) + 40px);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background-image: url("assets/img/bg-gradient.jpg");
  background-size: cover;
  background-position: top right;
  opacity: 0.34;
  filter: blur(4px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 78% 12%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 78% 12%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 78%);
  pointer-events: none;
  z-index: 1;
}

.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: 28px;
}

.hero-text {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 44px;
}

.scroll-cue {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex; justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px; height: 8px;
  border-radius: 999px;
  background: var(--text-faint);
  animation: scrollcue 1.8s ease infinite;
}

@keyframes scrollcue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- services (home) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 6vw, 64px);
}

.service h2, .service h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 16px;
}

.service p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 34ch;
}

/* ---------- page header (Sobre / Portfólio / Contato) ---------- */

.page-header {
  padding-top: calc(var(--section-pad-y) + 20px);
  padding-bottom: 0;
}

.page-title {
  font-size: clamp(30px, 5vw, 52px);
  max-width: 22ch;
  margin-bottom: 8px;
}

.page-lede {
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 60ch;
  margin-top: 24px;
}

/* ---------- prosa (Sobre / conteúdo do editor) ---------- */

.prose {
  max-width: 72ch;
  font-size: 16px;
  color: var(--text-muted);
}

.prose > * + * { margin-top: 22px; }

.prose h2, .prose h3 {
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 4px;
}

.prose a { color: var(--text); border-bottom: 1px solid var(--border); }
.prose img { border-radius: var(--radius); margin: 12px 0; }

.prose ul, .prose ol {
  padding-left: 1.2em;
  list-style: disc;
}
.prose ol { list-style: decimal; }

/* ---------- portfólio: filtros ---------- */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 48px 0 56px;
}

.filter-chip {
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover { color: var(--text); border-color: var(--glass-border); }

.filter-chip.active {
  color: var(--text);
  background: rgba(244, 245, 249, 0.08);
  border-color: var(--glass-border);
}

/* ---------- portfólio: grid ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.portfolio-card { display: block; }

.portfolio-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.portfolio-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-media img { transform: scale(1.04); }

.portfolio-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  gap: 16px;
}

.portfolio-card-title { font-size: 19px; font-weight: 600; }
.portfolio-card-cat { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }

.portfolio-empty {
  color: var(--text-muted);
  font-size: 15px;
  padding: 40px 0;
}

/* ---------- blog (feed externo) ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.blog-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  border-color: var(--glass-border);
  background: rgba(244, 245, 249, 0.03);
  transform: translateY(-2px);
}

.blog-card-media {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-soft);
}

.blog-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.blog-card-date {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.blog-card-title {
  font-size: 17px;
  font-weight: 600;
  margin: 12px 0 10px;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- paginação ---------- */

.pagination {
  display: flex;
  gap: 10px;
  margin-top: 64px;
}

.pagination a, .pagination span {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pagination .current { color: var(--text); border-color: var(--glass-border); }

/* ---------- single projeto ---------- */

.project-hero {
  padding-top: calc(var(--section-pad-y) + 20px);
  padding-bottom: 48px;
}

.project-cover {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-cover img { width: 100%; height: auto; display: block; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.project-meta-item .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 8px;
  display: block;
}

.project-meta-item .value { font-size: 15px; color: var(--text); }
.project-meta-item .value a { border-bottom: 1px solid var(--border); }

.project-body { padding-top: 0; }

.project-testimonial {
  margin-top: 64px;
  padding: 40px clamp(24px, 5vw, 56px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(244, 245, 249, 0.03);
}

.project-testimonial p {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}

.project-testimonial cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-faint);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.project-nav a { color: var(--text-muted); }
.project-nav a:hover { color: var(--text); }

/* ---------- contato ---------- */

.contact-glow {
  position: absolute;
  inset: auto -15% -30% -15%;
  height: 90%;
  background-image: url("assets/img/bg-gradient.jpg");
  background-size: cover;
  background-position: bottom left;
  opacity: 0.16;
  filter: blur(6px) saturate(90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 20% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 20% 100%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  margin-top: 48px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 13px; color: var(--text-muted); }

.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: rgba(244, 245, 249, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  border-color: rgba(244, 245, 249, 0.35);
  background: rgba(244, 245, 249, 0.05);
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { align-self: flex-start; margin-top: 8px; }

.form-feedback {
  max-width: 640px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 28px;
  border: 1px solid var(--border);
}

.form-feedback.success {
  color: #cfe8d8;
  border-color: rgba(120, 200, 150, 0.35);
  background: rgba(120, 200, 150, 0.08);
}

.form-feedback.error {
  color: #f2c9c9;
  border-color: rgba(220, 120, 120, 0.35);
  background: rgba(220, 120, 120, 0.08);
}

.contact-direct { margin-top: 36px; font-size: 14px; color: var(--text-muted); }
.contact-direct a { color: var(--text); border-bottom: 1px solid var(--border); }

/* ---------- 404 ---------- */

.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 340px;
  padding: 60px 24px 70px;
  text-align: center;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  inset: 0;
  background-image: url("assets/img/visid-gradient.jpg");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 35%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 35%, #000 70%);
  pointer-events: none;
  z-index: 0;
}

.site-footer img { position: relative; z-index: 1; opacity: 0.6; }
.site-footer p { position: relative; z-index: 1; font-size: 12.5px; color: var(--text-faint); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .floating-nav { gap: 14px; padding: 10px 16px; top: 14px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 12.5px; }
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  :root { --section-pad-y: clamp(80px, 20vw, 130px); }
}

@media (max-width: 380px) {
  .nav-logo img { height: 12px; }
  .nav-link { font-size: 11px; }
  .floating-nav { gap: 10px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
