/* ============================================
   MAGIA GLASS - DESIGN SYSTEM
   Premium Glass & Light Aesthetic
   Stack ready: GitHub + Vercel + Turso
   ============================================ */

:root {
  /* Brand + Ilha da Magia palette (mar + natureza + leveza)
     Azul da marca suavizado + teal oceano + toque de areia */
  --primary: #1E6A9E;
  --primary-dark: #0F3D5C;
  --primary-light: #3D9BD1;
  --accent: #2EB8A0;
  --accent-soft: #E6F7F4;
  --sand: #F5F0E8;
  --sand-dark: #E8DFD0;
  --magic: #5B8DEF;
  
  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFB;
  --gray-50: #F1F5F9;
  --gray-100: #E2E8F0;
  --gray-200: #CBD5E1;
  --gray-600: #64748B;
  --gray-800: #334155;
  --dark: #0F2744;
  
  /* Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(15, 61, 92, 0.1);
  
  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: linear-gradient(165deg, #F0F7FA 0%, #F8FAFB 35%, #FFFFFF 70%, #F5F0E8 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* páginas sem hero: compensar header fixo */
body:not(:has(.hero)) .section:first-of-type {
  padding-top: calc(var(--space-3xl, 3rem) + 104px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.1rem;
}

/* ========== GLASS CARD ========== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30, 106, 158, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 106, 158, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.whatsapp-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.2em;
  fill: currentColor;
}

.btn-whatsapp,
.whatsapp-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

.btn-whatsapp {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  animation: whatsappGlow 2.8s ease-in-out infinite;
}

.btn-whatsapp:hover {
  animation-play-state: paused;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

@keyframes whatsappGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 7px 28px rgba(37, 211, 102, 0.62), 0 0 0 7px rgba(37, 211, 102, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp,
  .whatsapp-float {
    animation: none;
  }
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  overflow: visible;
}

.header.is-solid,
.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 61, 92, 0.08);
  box-shadow: 0 4px 24px rgba(15, 61, 92, 0.08);
}

/* No topo da home: nav clara sobre o hero */
.header.is-transparent .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}
.header.is-transparent .nav-links a:hover,
.header.is-transparent .nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.header.is-transparent .nav-links a.active::after {
  background: linear-gradient(90deg, #7dd3c0, #fff);
}
.header.is-transparent .logo-wordmark .logo-name .magia,
.header.is-transparent .logo-wordmark .logo-name .glass {
  color: #fff;
}
.header.is-transparent .logo-wordmark .logo-tag {
  color: rgba(255, 255, 255, 0.75);
}
.header.is-transparent .logo-img-upload {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

/* Wordmark tipográfico no estilo do logo Magia Glass */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  user-select: none;
}

.logo-wordmark .logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  color: #2C3E50;
  display: flex;
  align-items: baseline;
  gap: 0.28em;
}

.logo-wordmark .logo-name .magia {
  font-weight: 600;
  color: #3D5A73;
  letter-spacing: 0.06em;
}

.logo-wordmark .logo-name .glass {
  font-weight: 700;
  color: #1A2B3C;
  letter-spacing: 0.02em;
}

.logo-wordmark .logo-tag {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5A7A94;
  margin-top: 0.28rem;
  padding-left: 1px;
}

.logo:hover .logo-name .magia { color: var(--primary); }
.logo:hover .logo-name .glass { color: var(--primary-dark); }

/* legacy box hidden if still in HTML */
.logo-box { display: none !important; }
.logo-text { display: none !important; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-800);
  position: relative;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(30, 106, 158, 0.06);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(30, 106, 158, 0.08);
  font-weight: 600;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 28px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header.is-transparent .menu-toggle span {
  background: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO (full-bleed + multi-slide) ========== */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 1.1s ease;
}

.hero-slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(15, 39, 68, calc(var(--media-overlay, 0.72) + 0.08)) 0%, rgba(15, 61, 92, calc(var(--media-overlay, 0.72) - 0.05)) 45%, rgba(15, 61, 92, calc(var(--media-overlay, 0.72) - 0.35)) 100%);
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}

.hero-dots button.active {
  background: #fff;
  width: 22px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: block;
  padding: var(--space-3xl) 0;
  max-width: 580px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.hero-content > div {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46, 184, 160, 0.18);
  color: #A8F0E0;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(46, 184, 160, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero h1 span {
  color: #5EEAD4;
  -webkit-text-fill-color: #5EEAD4;
  background: none;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-2xl);
}

.hero-actions .btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
}

.hero-stats {
  display: flex;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #5EEAD4;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* hide old logo visual */
.hero-visual { display: none; }

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  padding: 0;
  transition: var(--transition-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(30, 106, 158, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(43, 108, 176, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #e8f2f8, #d4ebe6);
}

.service-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(30,106,158,0.08), rgba(46,184,160,0.12));
  color: var(--primary);
}

.service-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(99, 179, 237, 0.3));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--dark);
  line-height: 1.3;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ========== GALLERY — cards capa + título (álbum no clique) ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(30, 106, 158, 0.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 10px 28px rgba(15, 39, 68, 0.08);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 39, 68, 0.14);
  border-color: rgba(46, 184, 160, 0.35);
}

.gallery-item-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f2f8, #d4ebe6);
  overflow: hidden;
}

.gallery-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-item-media img {
  transform: scale(1.06);
}

.gallery-item-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 39, 68, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.gallery-item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(10, 28, 48, 0.88) 0%, rgba(10, 28, 48, 0.35) 55%, transparent 100%);
  z-index: 2;
}

.gallery-item-caption h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

/* legado */
.gallery-item-body,
.gallery-overlay { display: none !important; }

/* ========== CONTACT FORM ========== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: var(--transition);
  color: var(--dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.25);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, #0F2744 100%);
  color: rgba(255,255,255,0.85);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand img {
  height: 56px;
  margin-bottom: var(--space-md);
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  opacity: 0.75;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========== FLOATING WHATSAPP ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  color: white;
  font-size: 1.8rem;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.4;
  z-index: -1;
}

@keyframes ping {
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ========== ADMIN STYLES ========== */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--dark);
  color: white;
  padding: var(--space-xl) var(--space-lg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .logo {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(99, 179, 237, 0.2);
  color: white;
}

.admin-main {
  padding: var(--space-2xl);
  background: var(--off-white);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: var(--space-xl);
}

.admin-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  color: var(--dark);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.table th {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: #C6F6D5; color: #22543D; }
.badge-info { background: #BEE3F8; color: #2A4365; }

/* ========== TOOLS (Marketing) ========== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.tool-card {
  padding: var(--space-xl);
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 0.9rem;
  position: relative;
  margin-bottom: var(--space-md);
}

.copy-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero { min-height: 78vh; }
  .hero-content { max-width: 100%; }
  .hero-bg {
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&q=80');
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--gray-100); width: 100%; }
  .menu-toggle { display: flex; }
  .nav-cta .btn-secondary { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.flex { display: flex; }
.gap-1 { gap: var(--space-md); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }


/* ========== PARALLAX / DIVISORES ========== */
:root {
  --media-overlay: 0.72;
}

.parallax-section {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -25% 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateY(0);
  z-index: 0;
  filter: saturate(1.15) contrast(1.05);
}

.parallax-section .parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 68, var(--media-overlay));
  z-index: 1;
  transition: background 0.35s ease;
}

.parallax-section .parallax-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 3.5rem 1.5rem;
  max-width: 720px;
}

.parallax-section .parallax-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.85rem;
  color: white;
  letter-spacing: -0.02em;
}

.parallax-section .parallax-inner p {
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Hero overlay uses same global variable */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 39, 68, calc(var(--media-overlay) + 0.08)) 0%, rgba(15, 61, 92, calc(var(--media-overlay) - 0.05)) 45%, rgba(15, 61, 92, calc(var(--media-overlay) - 0.35)) 100%);
  pointer-events: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 768px) {
  .parallax-section { min-height: 48vh; }
}

/* Divider images */
.site-divider {
  width: 100%;
  height: 55vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.site-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,39,68,0.4), rgba(15,61,92,0.2));
}

@media (max-width: 768px) {
  .site-divider { background-attachment: scroll; height: 42vh; min-height: 240px; }
  .logo-wordmark .logo-name { font-size: 1.55rem; }
  .logo-wordmark .logo-tag { font-size: 0.72rem; letter-spacing: 0.18em; }
  .nav { height: 84px; }
}

/* Lightbox / álbum */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 18, 32, 0.94);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.lightbox.open { display: flex; animation: lbIn 0.28s ease; }

@keyframes lbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: min(92vw, 960px);
  max-height: 68vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-caption {
  color: white;
  margin-top: 1.15rem;
  text-align: center;
  max-width: 640px;
}

.lightbox-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.lightbox-caption span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lightbox-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: center;
}

.lightbox-counter {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  min-width: 4rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }


.logo-img-upload {
  display: block;
  height: 82px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 768px) {
  .logo-img-upload { height: 64px; max-width: 210px; }
}


/* Acessibilidade de serviços */
.service-icon-svg { width: 2rem; height: 2rem; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-cover-placeholder .service-icon-svg { width: 3.25rem; height: 3.25rem; }
.menu-toggle { min-width: 44px; min-height: 44px; }
.menu-toggle:focus-visible, .nav-links a:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--accent, #2EB8A0); outline-offset: 3px; }

.viremarca-credit {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(46, 184, 160, 0.65);
  text-underline-offset: 0.18em;
}
.viremarca-credit:hover { color: var(--accent); text-decoration-color: currentColor; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.process-card { position: relative; padding: 1.5rem; min-height: 190px; border: 1px solid rgba(30,106,158,0.1); background: rgba(255,255,255,0.78); }
.process-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--primary);
  font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem;
}
.process-card h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 0.45rem; }
.process-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-grid { grid-template-columns: 1fr; } .process-card { min-height: auto; } }
