/* ==============================================================================
   ARTHUR BOTELHO ARQUITETURA & INTERIORES - STYLE GUIDE & CSS
   ==============================================================================
   GUIA DE MANUTENÇÃO ESTÉTICA E DESIGN (LEIA ANTES DE EDITAR)
   ==============================================================================
   Este arquivo define toda a identidade visual, tipografia, grid estrutural e 
   animações interativas do site de Arthur Botelho.

   1. DADOS DE DESIGN EDITÁVEIS (:root - Linhas ~45 a ~70):
      - CORES DA MARCA:
        --navy: Define a cor True Blue oficial do escritório (#1E2E47). É a cor
                predominante em fundos, cabeçalho escuro e botões principais.
        --gold: Cor bronze/dourada dos detalhes arquitetônicos (#8D6E63). Usada
                para destaques, tags de seção, botões ativos e linhas de título.
        --beige / --beige-dark: Tons off-white neutros editoriais, usados para
                backgrounds suaves das seções, simulando papel de portfólio.
      - TIPOGRAFIA (FONTES PREMIUM DO GOOGLE FONTS):
        --font-title: 'Playfair Display' - Serifada elegante para títulos e H1/H2.
        --font-body: 'DM Sans' - Sans-serif contemporânea de alta legibilidade para
                     parágrafos, menus e fichas técnicas de projetos.
        Caso precise trocar as fontes, faça o link do novo Google Fonts no 'index.html'
        e atualize os valores destas variáveis aqui no CSS.

   2. AJUSTES DA CURSOR EXCLUSIVO (LIQUID GOLD CURSOR - Linhas ~135 a ~175):
      - O cursor dinâmico é controlado pelo CSS (.custom-cursor) e suavizado 
        pelo JavaScript (Lógica LERP).
      - Para alterar o tamanho normal do cursor, edite 'width' e 'height' na classe
        '.custom-cursor'. Para o tamanho ao passar o mouse em links/botões, edite 
        'width' e 'height' na classe '.custom-cursor.active'.
      - O cursor é ocultado automaticamente em telas menores que 1024px para não
        prejudicar a navegação em celulares e tablets.

   3. AJUSTES DE ANIMAÇÕES DE TRANSISÇÃO (Linhas ~24 a ~28):
      - --transition-smooth: Usa uma curva cúbica bezier premium (cubic-bezier(0.25, 0.46, 0.45, 0.94))
        para garantir deslizamentos suaves ao invés de transições lineares duras.

   4. PLACEHOLDERS E SUBSTITUIÇÕES FUTURAS:
      - IMAGEM DE PERFIL DO ARQUITETO (Seção Sobre):
        Atualmente, é exibida uma moldura sofisticada com um ícone SVG e o texto
        "Arthur Botelho - CAU A319847-2". Quando o arquiteto disponibilizar sua foto
        de perfil profissional real:
        a) Adicione a foto (com fundo neutro ou transparente) na pasta '/assets/brand/perfil.webp'.
        b) Edite a seção '#sobre' no 'index.html' substituindo a div '.profile-placeholder'
           por uma tag de imagem correspondente: 
           <img src="assets/brand/perfil.webp" alt="Arthur Botelho" class="profile-img">
        c) No CSS, estilize '.profile-img' com 'border-radius: 2px', 'object-fit: cover', 
           e 'aspect-ratio: 4/5' para se alinhar perfeitamente à moldura Jacquard.
   ============================================================================== */

/* --- DESIGN TOKENS --- */
:root {
  /* Brand Harmonious Palette */
  --navy:         #1E2E47; /* Official Brand True Blue */
  --navy-rgb:     30, 46, 71;
  --gold:         #8D6E63; /* Architectural Bronze Gold */
  --gold-rgb:     141, 110, 99;
  --beige:        #F5F0E8; /* Editorial Canvas Off-White */
  --beige-dark:   #E8E0D0; /* Textured Warm Gray */
  --text:         #2E2820; /* Deep Charcoal Charcoal */
  --text-muted:   #7A6E62; /* Sandstone Muted Gray */
  --white:        #FFFDF8; /* Pure Alabaster */
  
  /* Styling Helpers */
  --font-title:   'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.25s ease;
  --max-width:    1280px;
}

/* --- RESET & BASIC DEFAULTS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* PROTECTION: Anti-drag policies globally */
* {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Allow text selection strictly on useful elements */
p, address, .contact-detail, .contact-link, .cau-license, .toast-message, h1, h2, h3, h4, h5, h6, select, input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

img, a, button {
  -webkit-user-drag: none;
  user-drag: none;
}

img {
  pointer-events: none;
  display: block;
  width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-color: var(--white);
}

.profile-img { width:100%; height:100%; object-fit:cover; display:block; border-radius: 15%; overflow: hidden;}

/* Custom Cursor Hide default on desktop */
@media (min-width: 1024px) {
  body {
    cursor: none;
  }
  a, button, input, select, textarea, .project-card {
    cursor: none !important;
  }
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- CUSTOM CURSOR (LERP LIQUID GOLD) --- */
/* EDITAR: Ajuste 'width'/'height' para mudar tamanho do cursor. 'ease' no JS controla a suavidade do lag. */
.custom-cursor {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
  /* mix-blend-mode removido — causava invisibilidade sobre fundos claros */
  background-color: rgba(141, 110, 99, 0.08);
}

.custom-cursor.active {
  width: 54px;
  height: 54px;
  background-color: rgba(141, 110, 99, 0.18);
  border-color: var(--gold);
}

.crt-widget.crt-widget-branded .crt-logo {
    display: none !important;
}

/* Hide on mobile devices */
@media (max-width: 1023px) {
  .custom-cursor {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* --- PAGE REVEAL OVERLAY --- */
.load-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--navy);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.load-line {
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 1s cubic-bezier(0.77, 0, 0.175, 1);
}

body.loading-state {
  overflow: hidden;
}

body.loading-state .load-line {
  width: 150px;
}

body.loaded-state .load-overlay {
  opacity: 0;
  visibility: hidden;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: block;
  z-index: 1001;
}

.logo-img {
  height: 52px; /* EDITAR: Aumente ou reduza a altura para ajustar o tamanho da logo no header */
  width: auto;
  filter: brightness(0) invert(1); /* Logo branca sobre fundo escuro */
  transition: var(--transition-fast);
}

/* Scrolled Header State */
.main-header.scrolled {
  padding: 16px 0;
  background-color: rgba(3E, 46, 71, 0.95); /* True Blue Dark */
  background-color: rgba(var(--navy-rgb), 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 253, 248, 0.05);
}

/* Navigation Links */
.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.85); /* Off white text */
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 14px;
  z-index: 1001;
}

.bar {
  width: 100%;
  height: 1px;
  background-color: var(--white);
  transition: var(--transition-fast);
}

/* Mobile Layout Header */
@media (max-width: 768px) {
  .header-container {
    padding: 0 24px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    inset: 0;
    background-color: var(--navy);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  /* Toggle Active State */
  .menu-toggle.open .bar-1 {
    transform: translateY(6px) rotate(45deg);
  }
  
  .menu-toggle.open .bar-2 {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- BUTTON COMPONENT --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px; /* Elegant premium edge */
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  box-shadow: 0 4px 14px rgba(var(--navy-rgb), 0.15);
}

.btn-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* --- SECTION GENERAL DESIGN --- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 40px;
}

@media (max-width: 768px) {
  .section-container {
    padding: 70px 24px;
  }
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

.title-line {
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  margin-bottom: 48px;
}

/* --- SECTION DECORATIVE DIVIDER --- */
.divider-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  background-color: var(--white);
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 68px;
  width: 8px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}

/* --- SECTION 1: HERO SLIDESHOW --- */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
}

/* Opacity Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(var(--navy-rgb), 0.48); /* Soft True Blue Overlay */
  z-index: 2;
}

/* SVG noise texture */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.038;
  pointer-events: none;
  z-index: 3;
}

.hero-content-wrapper {
  position: relative;
  z-index: 4;
  max-width: var(--max-width);
  width: 100%;
  padding: 0 40px;
  text-align: center;
}

.hero-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--beige-dark);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
}

/* Mouse Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  gap: 8px;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--beige-dark);
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px;
  position: relative;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 1px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-bounce 1.6s infinite ease;
}

@keyframes wheel-bounce {
  0% { transform: translate(-50%, 0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* --- SECTION 2: PORTFOLIO GRID --- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--beige-dark);
  border-radius: 30px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}

.filter-btn.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  transition: opacity 0.4s ease;
}

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

@media (max-width: 575px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Scale & shadow interaction on card wrapper */
.project-card:hover {
  transform: translateY(-6px);
}

.card-inner {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  overflow: hidden;
  background-color: var(--beige-dark);
}

.card-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .card-img {
  transform: scale(1.05);
}

/* Dark elegant gradient hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 46, 71, 0.92) 0%, rgba(30, 46, 71, 0.3) 60%, rgba(30, 46, 71, 0) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-details {
  width: 100%;
  transform: translateY(16px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .card-details {
  transform: translateY(0);
}

.card-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}

.card-location {
  font-size: 0.8rem;
  color: var(--beige-dark);
  margin-bottom: 18px;
}

.card-more-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  gap: 8px;
}

.arrow-svg {
  transition: transform 0.3s ease;
}

.project-card:hover .arrow-svg {
  transform: translateX(4px);
}

/* Sorting animations */
.project-card.fade-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.project-card.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* --- SECTION 3: SOBRE --- */
.about-section {
  position: relative;
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-dark) 100%);
  overflow: hidden;
}

/* Architectural Grid SVG Background Overlay */
.architectural-grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 39h39v1H0v-1zM39 0h1v39h-1V0z' fill='%232E2820' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.about-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 24px;
}

.about-bio {
  margin-bottom: 40px;
}

.bio-paragraph {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
  text-align: justify;
}

.bio-paragraph.highlight {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 400;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 28px;
}

/* Differentials */
.differentials-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.diff-item {
  display: flex;
  gap: 20px;
}

.diff-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background-color: rgba(141, 110, 99, 0.05);
}

.diff-text h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
}

.diff-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* About Photo Layout */
.about-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jacquard-frame-bg {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--gold);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

/* --- PROFILE PLACEHOLDER (Seção Sobre) ---
   EDITAR: Quando tiver foto real, remova este bloco e adicione:
   .profile-img { width:100%; height:100%; object-fit:cover; display:block; }
*/
.profile-placeholder {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--beige);
  border: 1px dashed rgba(141, 110, 99, 0.45); /* Borda pontilhada indica placeholder */
  box-shadow: 0 20px 45px rgba(30, 46, 71, 0.15);
}

/* Monogógrama "AB" estilizado no centro do placeholder */
.profile-ph-monogram {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.placeholder-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}

.placeholder-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.placeholder-hint {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.65;
  text-transform: uppercase;
  border: 1px solid rgba(141, 110, 99, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
}

.floating-badge {
  position: absolute;
  bottom: 30px;
  right: -24px;
  background-color: var(--white);
  padding: 20px 28px;
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--beige-dark);
}

.badge-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.badge-body {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--navy);
}

@media (max-width: 991px) {
  .about-image-column {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --- SECTION 4: CONTATO --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.contact-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.contact-icon-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-detail {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--navy);
}

.contact-link {
  transition: var(--transition-fast);
}

.contact-link:hover {
  color: var(--gold);
}

.link-highlight {
  color: var(--gold);
}

/* Social links wrapper */
.social-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--beige-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--gold);
  border-color: var(--gold);
  background-color: rgba(141, 110, 99, 0.05);
}

/* Interactive form styling */
.contact-form {
  background-color: var(--beige);
  padding: 48px;
  border-radius: 2px;
  border: 1px solid var(--beige-dark);
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

@media (max-width: 575px) {
  .contact-form {
    padding: 32px 20px;
  }
}

.form-row {
  margin-bottom: 24px;
}

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

@media (max-width: 575px) {
  .form-row.split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(141, 110, 99, 0.08);
}

.form-input::placeholder {
  color: #B5A89C;
  opacity: 0.7;
}

/* Custom Styled Select */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath fill='%237A6E62' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 48px;
}

.textarea-input {
  resize: vertical;
}

/* Error States */
.form-input.invalid-state {
  border-color: #D32F2F !important;
  background-color: #FFEBEE;
}

.error-msg {
  display: block;
  font-size: 0.75rem;
  color: #D32F2F;
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: all 0.25s ease;
}

.form-input.invalid-state + .error-msg {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin-top: 6px;
}

.form-actions {
  margin-top: 36px;
}

.contact-form .btn-primary {
  width: 100%;
}

/* Loading animations on Submit Button */
.btn-primary .btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s infinite linear;
  margin-left: 12px;
}

.btn-primary.loading-btn .btn-loader {
  display: inline-block;
}

.btn-primary.loading-btn .btn-text {
  opacity: 0.7;
}

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

/* --- FLOATING WIDGETS: WHATSAPP --- */
.whatsapp-floating {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}

.pulse-ring {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid #25D366;
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 768px) {
  .whatsapp-floating {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }
  
  .footer-logo {
      display: inline;
  }
  
  .floating-badge {
  position: unset;
  }
}

/* --- TOAST NOTIFICATIONS --- */
.toast-notification {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background-color: var(--navy);
  color: var(--white);
  padding: 18px 28px;
  border-radius: 2px;
  z-index: 1000;
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toast-icon {
  color: var(--gold);
  font-weight: bold;
}

.toast-message {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .toast-notification {
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 16px 20px;
  }
}

/* --- LIGHTBOX MODAL --- */
.project-lightbox {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

/* Show states natively or via CSS classes */
.project-lightbox[open] {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 46, 71, 0.88); /* Deep True Blue Backdrop */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.lightbox-wrapper {
  position: relative;
  z-index: 2;
  width: 90vw;
  height: 85vh;
  max-width: 1360px;
  background-color: var(--white);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  transform: scale(0.96);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-lightbox[open] .lightbox-wrapper {
  transform: scale(1);
  opacity: 1;
}

/* Close button on modal */
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: rotate(90deg);
}

.lightbox-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  width: 100%;
  height: 100%;
}

@media (max-width: 991px) {
  .lightbox-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1.1fr 0.9fr;
    overflow-y: auto;
  }
  .lightbox-wrapper {
    height: 90vh;
  }
}

/* Gallery Slider Side */
.lightbox-gallery-side {
  position: relative;
  background-color: #0E1624;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.lightbox-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.lightbox-slides {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Arrow controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--white);
  color: var(--navy);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--gold);
  width: 20px;
  border-radius: 4px;
}

/* Info side details drawer */
.lightbox-info-side {
  height: 100%;
  overflow-y: auto;
  border-left: 1px solid var(--beige-dark);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {
  .lightbox-info-side {
    border-left: none;
    border-top: 1px solid var(--beige-dark);
    padding: 36px 24px;
    height: auto;
  }
}

.lightbox-info-inner {
  margin-auto: 0;
}

.lightbox-category {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.lightbox-title {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 28px;
}

.lightbox-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--beige-dark);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-val {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.lightbox-description {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 40px;
}

.lightbox-cta-wrapper .btn-primary {
  width: 100%;
}

/* --- FOOTER SECTION --- */
.main-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,253,248,0.05);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 24px;
  }
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
  }
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--beige-dark);
  max-width: 320px;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beige-dark);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,253,248,0.08);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cau-license {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* --- SCROLL-REVEAL REUSABLE STYLES --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-load {
  opacity: 0;
  transform: translateY(24px);
}

body.loaded-state .reveal-on-load {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===========================================================
   SEÇÃO 5: REDES SOCIAIS
   =========================================================== */
.social-section {
  background-color: var(--beige);
  padding: 0;
}

/* Barra de ícones das redes */
.social-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 72px;
}

.social-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 36px;
  border: 1px solid var(--beige-dark);
  border-radius: 4px;
  color: var(--text-muted);
  background-color: var(--white);
  transition: var(--transition-smooth);
  min-width: 120px;
}

.social-bar-item span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.social-bar-item:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(141, 110, 99, 0.12);f

/* Bloco de feed (Instagram + Pinterest) */
.social-feed-block {
  margin-bottom: 72px;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--navy);
}

.feed-header svg {
  color: var(--gold);
  flex-shrink: 0;
}

.feed-header h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
}

/* Grid de cards placeholder do feed */
.feed-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

@media (max-width: 991px) {
  .feed-placeholder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .feed-placeholder-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.feed-ph-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
  background-color: var(--beige-dark);
}

.feed-ph-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feed-ph-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(30, 46, 71, 0);
  transition: background-color 0.35s ease;
  z-index: 1;
}

.feed-ph-card:hover .feed-ph-inner {
  transform: scale(1.06);
}

.feed-ph-card:hover::after {
  background-color: rgba(30, 46, 71, 0.35);
}

/* Pinterest embed wrapper */
.pinterest-placeholder {
  overflow: hidden;
  width: 100%;
  margin-bottom: 32px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 2px;
  padding: 24px;
}

/* Botão CTA de redes */
.feed-cta {
  display: flex;
  justify-content: center;
}

.btn-outline.btn-dark {
  color: var(--navy);
  border-color: rgba(30, 46, 71, 0.3);
}

.btn-outline.btn-dark:hover {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===========================================================
   MOBILE FIXES GLOBAIS (max-width: 480px — iPhone SE e similares)
   =========================================================== */
@media (max-width: 480px) {
  /* Hero: título menor em telas compactas */
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  /* Header: logo menor e padding compacto */
  .header-container {
    padding: 0 18px;
  }

  .logo-img {
    height: 38px;
  }

  /* Sobre: badge flutuante dentro da viewport */
  .floating-badge {
    right: 0;
    left: 0;
    bottom: -48px;
    margin: 0 auto;
    width: fit-content;
    max-width: 220px;
    text-align: center;
  }

  .about-image-column {
    padding-bottom: 60px; /* Espaco para o badge */
  }

  /* Contato: form padding reduzido */
  .contact-form {
    padding: 28px 16px;
  }

  /* Social bar: duas colunas em telas muito pequenas */
  .social-bar {
    gap: 10px;
  }

  .social-bar-item {
    min-width: calc(50% - 10px);
    padding: 22px 16px;
  }

  /* Toast e WhatsApp compactos */
  .whatsapp-floating {
    width: 46px;
    height: 46px;
    bottom: 20px;
    right: 16px;
  }
}

/* Garantir que card overlay seja visível em touch (sem hover) */
@media (hover: none) {
  .card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(30, 46, 71, 0.85) 0%, rgba(30, 46, 71, 0.2) 55%, rgba(30, 46, 71, 0) 100%);
  }
  .card-details {
    transform: translateY(0);
  }
}
