/**
 * ═══════════════════════════════════════════════════════════════════════════
 * PORTFÓLIO VINTAGE - CSS Principal
 * Design retrô autêntico com textura grain
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* Logo SVG */
.logo-svg {
    height: 110px;
    width: auto;
    color: #383A3C;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo-svg:hover { transform: scale(1.05); opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (VARIÁVEIS)
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Cores de fundo das seções (exatas do original) */
  --color-hero: #78BBBB;
  --color-about: #E6E1D0;
  --color-portfolio: #E68966;
  --color-blog: #D2D4D8;
  --color-contact: #4C5057;
  --color-header: #7AC0C0;
  
  /* Cores de texto e UI */
  --color-text: #383A3C;
  --color-text-light: #F6EDD8;
  --color-cream: #FCFAF7;
  --color-paper: #F5EEE3;
  --color-dark: #484A4D;
  --color-muted: #828C8E;
  --color-accent: #D35244;
  
  /* Tipografia - Fontes vintage autênticas */
  --font-display: 'Rye', cursive; /* Substitui BazarMedium do original */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto Slab', serif;
  
  /* Layout */
  --container-max: 960px;
  --header-height: 130px;
  
  /* Transições */
  --transition: 0.2s ease;
  
  /* Sombras */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CSS RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-cream);
}

/* Utilitários */
.clear::before, .clear::after { content: ""; display: table; }
.clear::after { clear: both; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-dark);
  color: var(--color-text-light);
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus { top: 1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   TIPOGRAFIA
   ═══════════════════════════════════════════════════════════════════════════ */

/* Títulos principais - fonte vintage display IGUAL ORIGINAL */
h1, h2, h3, h4, h5, h6,
nav ul#main-nav li {
  font-family: var(--font-display); /* Rye = substitui BazarMedium */
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.05em;
}

h2.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Menu e subtítulos usam Oswald */
.section-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

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

a:hover { color: var(--color-accent); }

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

.enbold { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════════
   GRID SYSTEM (12 colunas)
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 10px;
}

.row {
  margin-left: -10px;
  margin-right: -10px;
  padding: 1em 0;
}

.col { float: left; padding: 0 10px; }

.col-1 { width: 8.33333%; }
.col-2 { width: 16.66667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33333%; }
.col-5 { width: 41.66665%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33333%; }
.col-8 { width: 66.66666%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33333%; }
.col-11 { width: 91.66666%; }
.col-12 { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   SEÇÕES - ESTRUTURA GERAL COM GRAIN
   ═══════════════════════════════════════════════════════════════════════════ */
.section-inner {
  position: relative;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Aplicar grain em todas as seções - TEXTURA FORTE IGUAL ORIGINAL */
.header-inner,
.section-inner {
  position: relative;
}

.header-inner::after,
.section-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='8' seed='15' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px 150px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.header-inner > *,
.section-inner > * {
  position: relative;
  z-index: 2;
}

/* Linhas tracejadas decorativas */
hr.top-dashed,
hr.bottom-dashed {
  margin: 0;
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.25);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  height: 0;
  z-index: 10;
  width: 100%;
}

hr.top-dashed { top: 10px; }
hr.bottom-dashed { bottom: 10px; }

/* Títulos de seção */
.section-title {
  font-size: clamp(50px, 10vw, 90px);
  text-align: center;
  margin-bottom: 0.33em;
}

.section-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.retro-borders {
  text-shadow: 1px 2px var(--color-cream), 3px 4px var(--color-dark);
}

/* Separador ××× */
.separator {
  font-size: 22px;
  text-align: center;
  line-height: 22px;
}

.separator span {
  position: relative;
  display: inline-block;
  padding: 0 15px;
}

.separator span::before,
.separator span::after {
  content: "";
  position: absolute;
  height: 6px;
  border-bottom: 2px solid var(--color-text);
  top: 5px;
  width: 40px;
}

.separator span::before { right: 100%; margin-right: 8px; }
.separator span::after { left: 100%; margin-left: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER - Layout igual original
   ═══════════════════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  height: var(--header-height);
  background-color: var(--color-header);
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

.header-inner .row {
  position: relative;
  height: 100%;
  margin-left: 170px; /* Espaço para o logo que está fora do container */
}

/* Logo - Badge circular - FORA do container, filho direto do header-inner */
#logo {
  position: absolute;
  left: calc((100% - var(--container-max)) / 2); /* Alinha com o container */
  top: 5px;
  z-index: 20; /* Acima das linhas tracejadas (z-index: 10) */
}

#logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background-color: var(--color-cream);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition);
  position: relative;
  top: 0;
}

#logo a:hover { top: -10px; }

#logo h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Navegação - ALINHADA À DIREITA E CENTRALIZADA VERTICALMENTE */
nav[role="navigation"] {
  float: right;
  margin: 50px 0; /* Centraliza verticalmente no header de 130px */
}

nav ul#main-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

nav ul#main-nav li {
  font-family: var(--font-display); /* Fonte retro igual ao título */
  font-size: 22px;
  padding: 0 18px;
  letter-spacing: 0.05em;
}

nav ul#main-nav li a {
  color: var(--color-text-light);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all var(--transition);
  text-decoration: none;
}

nav ul#main-nav li a:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-cream);
}

/* Nav Toggle Mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 25;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--color-text-light);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animação hambúrguer → X quando ativo */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-home {
  background-color: var(--color-hero);
  padding-top: calc(var(--header-height) + 30px);
}

.banner {
  margin-bottom: 20px;
  text-align: center;
}

.banner img {
  margin: 0 auto;
  max-width: 100%;
}

/* Hero Title RETRO - Art Deco Style com linhas horizontais */
.hero-title-retro {
  font-family: 'Rye', 'Oswald', serif;
  font-size: clamp(4.5rem, 14vw, 11rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: transparent;
  background: repeating-linear-gradient(
    180deg,
    #f5f0e6 0px,
    #f5f0e6 3px,
    #7ac0c0 3px,
    #7ac0c0 6px
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 3px #5a9e9e;
  paint-order: stroke fill;
  text-shadow: 
    4px 4px 0 rgba(90, 158, 158, 0.3),
    6px 6px 0 rgba(0, 0, 0, 0.1);
  margin: 0;
  padding-top: 60px;
  line-height: 1;
  text-align: center;
  position: relative;
  filter: drop-shadow(2px 2px 0 #5a9e9e);
}

.hero-title-retro::before {
  content: '';
  display: none;
}

.hero-title-retro::after {
  content: '';
  display: none;
}

/* Ribbon */
.ribbon {
  min-width: 280px;
  max-width: 360px;
  position: relative;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  background: #fff0ce;
  box-shadow: var(--shadow-lg);
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  margin: 30px auto;
}

.ribbon::before,
.ribbon::after {
  content: '';
  position: absolute;
  display: block;
  bottom: -12px;
  border: 24px solid #FFEDC8;
  z-index: -1;
}

.ribbon::before {
  left: -37px;
  border-right-width: 33px;
  border-left-color: transparent;
  box-shadow: 2px 2px 1px -1px rgba(0, 0, 0, 0.3);
}

.ribbon::after {
  right: -37px;
  border-left-width: 33px;
  border-right-color: transparent;
  box-shadow: -2px 2px 1px -1px rgba(0, 0, 0, 0.3);
}

.ribbon-content {
  color: #4B4D4E;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  margin: 0;
  padding: 12px 10px 11px;
  font-size: 22px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.ribbon-content::before,
.ribbon-content::after {
  border-color: #849092 transparent transparent transparent;
  position: absolute;
  display: block;
  border-style: solid;
  bottom: -12px;
  content: '';
}

.ribbon-content::before { left: 0; border-width: 12px 0 0 20px; }
.ribbon-content::after { right: 0; border-width: 12px 20px 0 0; }

.ribbon-content span {
  position: relative;
  display: inline-block;
}

.ribbon-content span::before,
.ribbon-content span::after {
  content: "";
  display: block;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
  position: absolute;
  left: -10px;
  right: -10px;
}

.ribbon-content span::before { top: -8px; }
.ribbon-content span::after { bottom: -8px; }

/* Ribbon dots */
.dots {
  width: 6px;
  height: 6px;
  background-color: #FFF0CE;
  position: absolute;
  top: 32px;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.dot1 { left: -50px; }
.dot2 { left: -75px; }
.dot3 { left: -100px; }
.dot4 { left: -125px; }
.dot5 { right: -50px; }
.dot6 { right: -75px; }
.dot7 { right: -100px; }
.dot8 { right: -125px; }

/* Slider */
.slider {
  width: 100%;
  background-color: var(--color-cream);
  padding: 10px;
  border-radius: 3px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  position: relative;
}

.slider-track {
  position: relative;
  overflow: hidden;
  min-height: 300px; /* Prevent layout shift */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  margin: 0;
}

.slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  border-radius: 2px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.slide-caption {
  text-align: center;
  padding: 10px 0;
}

.slide-caption h3 {
  font-size: 22px;
  margin: 0;
  color: var(--color-text);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-cream);
  border: none;
  height: 60px;
  width: 30px;
  font-size: 24px;
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--transition);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover { color: var(--color-text); }

.slider-prev {
  left: 0;
  border-radius: 0 60px 60px 0;
}

.slider-next {
  right: 0;
  border-radius: 60px 0 0 60px;
}

.slider-btn svg {
  width: 24px;
  height: 24px;
}

/* Welcome */
.welcome {
  text-align: center;
}

.welcome h2 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 300;
}

.welcome h2::before { content: '"'; }

.welcome h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 300;
  font-size: 24px;
}

.welcome h3::after { content: '"'; }

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-about {
  background-color: var(--color-about);
}

.columned-layout h4,
.columned-layout .subline {
  text-align: center;
  text-transform: uppercase;
}

.columned-layout h4 {
  font-size: 27px;
  margin-bottom: 5px;
}

.columned-layout .subline {
  font-family: var(--font-heading);
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--color-muted);
}

.columned-layout hr {
  border: none;
  background-color: rgba(56, 58, 60, 0.9);
  height: 3px;
  width: 40px;
  margin: 0 auto 10px;
}

.columned-layout p {
  font-size: 14px;
}

/* Big Icons */
.big-icon {
  margin-bottom: 20px;
  text-align: center;
}

.big-icon .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-paper);
  font-size: 85px;
  background-color: var(--color-accent);
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px var(--color-accent),
    inset 0 0 0 8px var(--color-paper);
}

.big-icon .icon svg {
  width: 70px;
  height: 70px;
  stroke: var(--color-paper);
  stroke-width: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-portfolio {
  background-color: var(--color-portfolio);
}

/* Filters */
.filters {
  margin-bottom: 20px;
}

.filter-label {
  float: left;
  margin-right: 8px;
  font-weight: 700;
}

.filters ul.cats {
  list-style: none;
  display: inline;
}

.filters ul.cats li {
  display: inline;
  position: relative;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px 4px 12px;
  margin-left: 12px;
  margin-right: 6px;
  margin-bottom: 4px;
  color: var(--color-text);
  background-color: var(--color-cream);
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.filters ul.cats li::before {
  content: "";
  float: left;
  position: absolute;
  top: 0;
  left: -12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12px 12px 0;
  border-color: transparent var(--color-cream) transparent transparent;
}

.filters ul.cats li::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #959CA3;
}

.filters ul.cats li.active {
  background-color: var(--color-text);
}

.filters ul.cats li.active a {
  color: var(--color-cream);
}

.filters ul.cats li.active::before {
  border-color: transparent var(--color-text) transparent transparent;
}

.filters ul.cats li a {
  color: inherit;
}

/* Portfolio Grid */
.portfolio-list ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.portfolio-list ul li {
  margin-bottom: 20px;
}

.portfolio-list ul li a {
  display: block;
  border: 4px solid var(--color-cream);
  background-color: var(--color-cream);
  border-radius: 3px;
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  position: relative; /* Para skeleton-placeholder absoluto */
  overflow: hidden;
}

/* Skeleton placeholder dentro do portfolio */
.portfolio-list .skeleton-placeholder {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.portfolio-list ul li a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
}

/* Portfolio Icon - ESTILO ORIGINAL */
.portfolio-list ul li .icon {
  position: relative;
  top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  background-color: var(--color-cream);
  border-radius: 50%;
  color: var(--color-muted);
  transition: top var(--transition);
}

.portfolio-list ul li .icon svg {
  width: 22px;
  height: 22px;
}

.portfolio-list ul li a:hover .icon {
  top: -25px;
}

.portfolio-list ul li h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  position: relative;
  margin-top: -24px;
  margin-bottom: 10px;
}

/* Portfolio hidden state */
.portfolio-list ul li.hidden {
  display: none;
}

/* Animation */
.portfolio-list ul.animated {
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

.portfolio-list ul.fadeOutLeft {
  animation-name: fadeOutLeft;
}

.portfolio-list ul.fadeInRight {
  animation-name: fadeInRight;
}

@keyframes fadeOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-20px); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* More Posts Link */
.more-posts {
  text-align: center;
  margin: 20px 0;
}

.more-posts a {
  text-transform: uppercase;
  position: relative;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.more-posts a::before {
  position: absolute;
  left: 0;
  bottom: 120%;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  content: '';
  transition: transform 0.3s;
  transform: scaleX(0.6);
}

.more-posts a:hover::before {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-blog {
  background-color: var(--color-blog);
}

.blog-list ul {
  list-style: none;
  margin: 0;
}

.blog-list ul li img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border: 4px solid var(--color-cream);
  background-color: var(--color-cream);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.blog-list .post-title h3 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 4px;
}

.blog-list h4.post-meta {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 10px;
}

.blog-list h4.post-meta a {
  font-weight: 700;
}

.blog-list hr {
  border: none;
  background-color: rgba(56, 58, 60, 0.9);
  height: 2px;
  width: 40px;
  margin: 0 0 10px;
}

.blog-list .post-comments {
  float: right;
}

.blog-list .post-content {
  font-size: 14px;
}

.blog-list .post-content p {
  margin: 0;
}

.more-link {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
}

/* Blog Sidebar */
.blog-sidebar {
  font-size: 14px;
}

.widget {
  margin-bottom: 30px;
}

.widget h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.widget hr {
  border: none;
  background-color: rgba(56, 58, 60, 0.9);
  height: 2px;
  width: 30px;
  margin: 0 0 10px;
}

.widget ul {
  list-style: none;
  margin: 0;
}

.widget ul li {
  font-size: 13px;
  margin-bottom: 5px;
}

.widget input[type="search"] {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 3px;
  font-family: var(--font-body);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Categories as tags */
.widget.categories ul li {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 8px;
}

.widget.categories ul li a {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px 4px 12px;
  background-color: var(--color-cream);
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.widget.categories ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12px 12px 0;
  border-color: transparent var(--color-cream) transparent transparent;
}

.widget.categories ul li a::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #959CA3;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-contact {
  background-color: var(--color-contact);
}

.section-contact form {
  max-width: 500px;
  margin: 0 auto 30px;
}

.section-contact fieldset {
  border: none;
  padding: 0;
}

.section-contact input,
.section-contact textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: none;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

.section-contact input:focus,
.section-contact textarea:focus {
  outline: 2px solid var(--color-header);
}

/* Button */
.button {
  display: inline-block;
  line-height: 1.8;
  font-weight: 700;
  padding: 4px 16px;
  margin-bottom: 4px;
  color: var(--color-text);
  background-color: var(--color-cream);
  border: none;
  border-radius: 3px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.2);
}

#form-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 3px;
  text-align: center;
  display: none;
}

#form-status.success {
  background: var(--color-header);
  color: var(--color-text);
  display: block;
}

#form-status.error {
  background: var(--color-accent);
  color: white;
  display: block;
}

/* Social Icons */
.social-icons {
  text-align: center;
}

.social-icons h5 {
  font-size: 24px;
  margin-bottom: 10px;
}

.social-icons hr {
  border: none;
  background-color: rgba(245, 238, 227, 0.9);
  height: 2px;
  width: 40px;
  margin: 0 auto 10px;
}

.social-icons ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icons ul li a {
  display: block;
  position: relative;
  top: 0;
  transition: top var(--transition);
}

.social-icons ul li a:hover {
  top: -5px;
}

.social-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 45px;
  background-color: var(--color-paper);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px var(--color-paper),
    inset 0 0 0 4px var(--color-text);
}

.social-icons .icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT TEXT (para seções escuras)
   ═══════════════════════════════════════════════════════════════════════════ */
.light-text,
.light-text a {
  color: var(--color-text-light);
}

.light-text nav ul#main-nav li a {
  color: var(--color-text-light);
}

.light-text hr.top-dashed,
.light-text hr.bottom-dashed {
  border-top-color: rgba(0, 0, 0, 0.25);
}

.light-text .separator span::before,
.light-text .separator span::after {
  border-color: var(--color-text-light);
}

.light-text .retro-borders {
  text-shadow: 1px 2px var(--color-dark), 3px 4px rgba(212, 206, 191, 0.8);
}

.light-text .social-icons hr {
  background-color: rgba(245, 238, 227, 0.9);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  background-color: var(--color-dark);
  color: var(--color-text-light);
  padding: 30px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 5px;
  font-size: 14px;
}

.footer-credit {
  font-size: 12px;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX/MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--color-accent);
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 30px;
  padding: 20px 15px;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKELETON LOADING STATES - Enterprise Pattern
   ═══════════════════════════════════════════════════════════════════════════ */

/* Animação shimmer base */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton base - aplicar em qualquer elemento */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 25%,
    rgba(0, 0, 0, 0.12) 50%,
    rgba(0, 0, 0, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* Skeleton para texto */
.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.skeleton-text:last-child {
  width: 70%;
}

/* Skeleton para títulos */
.skeleton-title {
  height: 2em;
  width: 60%;
  margin-bottom: 1em;
}

/* Skeleton para imagens */
.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
}

.skeleton-image--square {
  aspect-ratio: 1 / 1;
}

.skeleton-image--portrait {
  aspect-ratio: 3 / 4;
}

/* Skeleton para círculos (avatares) */
.skeleton-circle {
  border-radius: 50%;
}

/* Skeleton para cards */
.skeleton-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

/* Container que esconde quando conteúdo carrega */
.skeleton-container {
  position: relative;
}

.skeleton-container .skeleton-placeholder {
  position: absolute;
  inset: 0;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.skeleton-container.loaded .skeleton-placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Lazy load images - fade in suave */
img[data-src],
img.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[data-src].loaded,
img.lazy.loaded {
  opacity: 1;
}

/* Loading spinner para botões */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Botão com texto original preservado para acessibilidade */
.btn-loading .btn-text {
  visibility: hidden;
}

/* Estado de loading global da página */
.page-loading {
  position: fixed;
  inset: 0;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.page-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loading::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-muted);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEDIA QUERIES - RESPONSIVIDADE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media only screen and (min-width: 740px) and (max-width: 959px) {
  .container {
    padding: 0 20px;
  }
  
  #logo {
    left: 20px; /* Alinha com o padding do container no tablet */
  }
  
  .header-inner .row {
    margin-left: 170px;
  }
  
  .tablet-col-4 { width: 33.33333%; }
  .tablet-col-6 { width: 50%; }
  .tablet-col-8 { width: 66.66666%; }
  .tablet-full {
    float: none;
    width: 100%;
    clear: both;
    margin: 1em 0 0;
  }
}

/* Mobile */
@media only screen and (max-width: 739px) {
  :root {
    --header-height: 110px; /* Mais alto pra caber logo centralizado */
  }
  
  .container {
    padding: 0 20px;
  }
  
  /* Header mobile */
  .header-inner {
    height: var(--header-height);
    min-height: var(--header-height);
    padding-top: 10px;
  }
  
  .header-inner .row {
    margin-left: 0;
    height: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 40px;
  }
  
  /* Logo mobile - centralizado no topo */
  #logo {
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
  }
  
  #logo a {
    width: 100px;
    height: 100px;
  }
  
  #logo a:hover {
    top: -10px;
  }
  
  #logo h1 {
    font-size: 18px;
  }
  
  /* Botão hambúrguer - no canto direito, alinhado verticalmente */
  .nav-toggle {
    display: flex;
    position: fixed;
    right: 20px;
    top: 35px;
    transform: none;
    z-index: 10001; /* Acima de TUDO, inclusive do menu aberto */
  }
  
  /* Menu mobile - slide da direita - ACIMA DE TUDO */
  nav[role="navigation"] {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para mobile */
    background: var(--color-dark);
    padding: 120px 30px 30px; /* Padding top grande pra não cortar */
    transition: right 0.3s ease;
    z-index: 10000; /* MUITO acima do header (1000) */
    float: none;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  
  nav[role="navigation"].active {
    right: 0;
  }
  
  /* Overlay quando menu está aberto */
  nav[role="navigation"]::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
  }
  
  nav[role="navigation"].active::before {
    opacity: 1;
    visibility: visible;
  }
  
  /* Esconde logo e linhas quando menu mobile está ativo */
  nav[role="navigation"].active ~ #logo,
  body.menu-open #logo,
  body.menu-open .header-inner hr {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  
  nav ul#main-nav {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul#main-nav li {
    font-size: 22px;
    padding: 0;
    text-align: left;
  }
  
  nav ul#main-nav li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Sections */
  .section-home {
    padding-top: calc(var(--header-height) + 20px);
  }
  
  .ribbon {
    max-width: 280px;
  }
  
  .dots {
    display: none;
  }
  
  .slide-caption h3 {
    font-size: 18px;
  }
  
  .welcome h2 {
    font-size: 26px;
  }
  
  .welcome h3 {
    font-size: 20px;
  }
  
  /* Grid mobile */
  .mobile-full {
    float: none;
    width: 100%;
    clear: both;
    margin: 0.5em 0 0;
  }
  
  /* Portfolio mobile */
  .filters {
    text-align: center;
  }
  
  .filter-label {
    float: none;
    display: block;
    margin-bottom: 10px;
  }
  
  .portfolio-list ul {
    flex-direction: column;
  }
  
  .portfolio-list ul li {
    width: 100%;
  }
  
  /* Blog mobile */
  .blog-list ul li .col {
    width: 100%;
    float: none;
  }
  
  .blog-sidebar {
    margin-top: 30px;
  }
  
  /* Lightbox mobile */
  .lightbox-nav {
    padding: 15px 10px;
    font-size: 24px;
  }
  
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
}

/* Preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  html { scroll-behavior: auto; }
}

/* Print */
@media print {
  .header, .nav-toggle, .slider-btn, .filters, .social-icons, .footer {
    display: none;
  }
}

/* ===== BYAP Logo Styles ===== */
.logo-text {
    font-family: "Oswald", "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-text .bracket {
    color: var(--color-primary, #e50914);
    font-weight: 800;
}

#logo a {
    text-decoration: none;
    color: inherit;
}
/* ===== End BYAP Logo ===== */


/* ============================================
   FAANG-LEVEL ROUND 2 - UX & INTERACTION
   ============================================ */

/* Active States for All Interactive Elements */
button:active,
a:active,
[role="button"]:active,
.btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Enhanced Hover States */
button:hover,
a:hover,
[role="button"]:hover,
.btn:hover {
  transform: translateY(-1px);
}

/* Haptic-like Feedback (visual) */
@keyframes haptic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.97); }
}

.haptic:active {
  animation: haptic-pulse 0.15s ease-out;
}

/* Improved Loading Animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Interaction Feedback */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
  border-color: var(--cor-primaria, #6366f1);
}

/* Better Disabled State */
button:disabled,
input:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Micro-interactions */
.card,
.btn,
article {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Spring Animation */
@keyframes spring {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-spring {
  animation: spring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Subtle Entrance Animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* Stagger Animation Helper */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* Premium Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--cor-primaria, #6366f1), var(--cor-secundaria, #a855f7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Button */
.btn-premium {
  position: relative;
  overflow: hidden;
}

.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-premium:hover::before {
  transform: translateX(100%);
}


/* Garantir que imagens carregadas apareçam */
img.loaded {
  opacity: 1 !important;
  visibility: visible !important;
}

/* IMPORTANTE: Forçar imagens a aparecerem após 2s mesmo sem .loaded */
@keyframes forceShow {
  to { opacity: 1; }
}

img[data-src], img.lazy {
  animation: forceShow 0.3s ease 2s forwards;
}

/* Esconder skeletons quando carregado */
.skeleton-container.loaded .skeleton-placeholder,
.skeleton-container.loaded .skeleton,
.loaded > .skeleton {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Esconder skeletons após 3s de qualquer forma */
@keyframes hideSkeleton {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.skeleton-placeholder,
.skeleton {
  animation: hideSkeleton 0.3s ease 3s forwards;
}

/* Portfolio items - garantir que imagens apareçam */
.portfolio-list ul li a img {
  min-height: 150px;
  object-fit: cover;
}

/* Fallback visual para elementos vazios */
.bento-card:empty,
.card:empty,
.portfolio-item:empty {
  min-height: 100px;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}

/* Lucide icons fallback */
[data-lucide]:empty::before {
  content: "•";
  font-size: 1.5em;
  opacity: 0.3;
}



/* ========================================
   BYAP Fix: Robust Visual Fallbacks
   ======================================== */

/* Garantir que imagens carregadas apareçam */
img.loaded {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Forçar imagens a aparecerem após 2s mesmo sem .loaded */
@keyframes forceShow {
  to { opacity: 1; }
}

img[data-src], img.lazy {
  animation: forceShow 0.3s ease 2s forwards;
}

/* Esconder skeletons quando carregado */
.skeleton-container.loaded .skeleton-placeholder,
.skeleton-container.loaded .skeleton,
.loaded > .skeleton {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Esconder skeletons após 3s */
@keyframes hideSkeleton {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.skeleton-placeholder,
.skeleton {
  animation: hideSkeleton 0.3s ease 3s forwards;
}

/* Fallback visual para elementos vazios */
.bento-card:empty,
.card:empty,
.portfolio-item:empty {
  min-height: 100px;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}

/* Lucide icons - garantir tamanho */
[data-lucide] svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

