/*
Theme Name: Muvéri Arquitetura
Theme URI: https://muveri.arq.br
Author: Muvéri
Author URI: https://www.instagram.com/muveri.arq/
Description: Tema WordPress da Muvéri Arquitetura — projetos residenciais de alto padrão em Balneário Camboriú. Design escuro, sofisticado (Midnight Indigo).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muveri
Tags: dark, one-column, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   Muvéri — Midnight Indigo Design System
   ========================================================= */

:root {
  --background: #0a0a1a;
  --foreground: #f5f5fa;
  --ink: #141432;
  --ink-soft: #1e1e5a;
  --card: #12122a;
  --muted: #1a1a35;
  --muted-foreground: #a8a8c4;
  --primary: #4f46e5;
  --primary-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.10);
  --radius: 0.5rem;

  --font-display: "Urbanist", system-ui, -apple-system, sans-serif;
  --font-sans: "Epilogue", system-ui, -apple-system, sans-serif;

  --gradient-hero: linear-gradient(180deg, rgba(10,10,26,0.2) 0%, rgba(10,10,26,0.55) 55%, rgba(10,10,26,0.95) 100%);
  --shadow-elegant: 0 30px 60px -25px rgba(79, 70, 229, 0.5);
  --shadow-card: 0 20px 40px -20px rgba(0,0,0,0.6);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 200ms; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

::selection { background: rgba(79,70,229,0.4); color: #fff; }

/* Utilities */
.container-x {
  margin: 0 auto;
  width: 100%;
  max-width: 80rem;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container-x { padding: 0 2.5rem; }
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.text-balance { text-wrap: balance; }

.gradient-text {
  background: linear-gradient(120deg, #fff 0%, #b8a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 200ms;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elegant);
}
.btn-primary:hover { opacity: 0.9; color: #fff; }
.btn-dark {
  background: var(--foreground);
  color: var(--background);
}
.btn-dark:hover { background: rgba(245,245,250,0.9); color: var(--background); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  z-index: 50;
  padding-top: 1rem;
}
.site-header .container-x { display: block; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  padding: 0.625rem 1rem;
}
@media (min-width: 768px) { .header-inner { padding: 0.625rem 1.5rem; } }
.site-logo img { height: 4rem; width: auto; }
@media (min-width: 768px) { .site-logo img { height: 5rem; } }

.main-nav { display: none; }
@media (min-width: 768px) {
  .main-nav { display: flex; align-items: center; gap: 2rem; }
}
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1500ms ease-in-out;
}
.hero-slides img.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero);
}
.hero-content { padding: 8rem 0 4rem; }
@media (min-width: 768px) { .hero-content { padding: 8rem 0 6rem; } }
.hero h1 {
  margin-top: 1rem;
  max-width: 64rem;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(120deg, #fff 0%, #b8a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-cta { margin-top: 2.5rem; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(20,20,50,0.4);
  padding: 1.25rem 0;
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.marquee-track span {
  text-transform: uppercase;
  letter-spacing: 0.32em;
}

/* Sections */
section { padding: 6rem 0; }
@media (min-width: 768px) { section { padding: 9rem 0; } }

.section-divider { height: 1px; width: 4rem; background: var(--primary); margin-top: 0.75rem; }

.section-title {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(120deg, #fff 0%, #b8a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-text {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.img-zoom { overflow: hidden; border-radius: 1rem; }
.img-zoom img { transition: transform 1200ms cubic-bezier(.2,.7,.2,1); }
.img-zoom:hover img { transform: scale(1.06); }

.about-cards {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .about-cards { grid-template-columns: 1fr 1fr; } }
.about-card {
  border: 1px solid var(--border);
  background: rgba(18,18,42,0.4);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.about-card-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.about-card-text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Services */
.services {
  background: rgba(20,20,50,0.3);
  border-top: 1px solid var(--border);
}
.services-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .services-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.services-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: var(--card);
  padding: 2rem;
  transition: background 200ms;
}
@media (min-width: 768px) { .service-card { padding: 2.5rem; } }
.service-card:hover { background: var(--ink-soft); }
.service-icon {
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  background: rgba(79,70,229,0.1);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(79,70,229,0.3);
  font-size: 1.25rem;
}
.service-card h3 { margin-top: 2rem; font-family: var(--font-display); font-size: 1.5rem; }
.service-card p { margin-top: 0.75rem; color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.65; }

/* Gestão de Obras */
.gestao-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .gestao-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.gestao-img {
  aspect-ratio: 4/5;
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.gestao-img img { width: 100%; height: 100%; object-fit: cover; }
.gestao-list { margin-top: 2rem; list-style: none; display: grid; gap: 0.875rem; }
.gestao-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--foreground);
  font-size: 0.9375rem;
}
.gestao-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Projects */
.projects-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(12, 1fr); } }
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms; }
.project-card:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,26,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.project-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.project-area { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.col-md-7 { grid-column: span 7; }
.col-md-5 { grid-column: span 5; }
@media (max-width: 767px) { .col-md-7, .col-md-5 { grid-column: span 1; } }

/* Instagram grid */
.instagram-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .instagram-grid { grid-template-columns: repeat(4, 1fr); } }
.instagram-grid a {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}
.instagram-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.instagram-grid a:hover img { transform: scale(1.08); }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 48rem; margin: 0 auto; }
.cta-section .btn { margin-top: 2rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a { font-size: 0.9375rem; color: var(--foreground); }
.footer-col p { color: var(--muted-foreground); font-size: 0.9375rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  transition: all 200ms;
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 900ms cubic-bezier(.2,.7,.2,1) both; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* Blog / Post */
.post-content { max-width: 48rem; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.post-content h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
.post-content h2 { font-size: 1.875rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content p, .post-content ul, .post-content ol { margin-bottom: 1.25rem; color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.75; }
.post-content ul, .post-content ol { padding-left: 1.5rem; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-meta { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 2rem; }
