/* * SANTA CLARA DESIGN STUDIO - FINAL PROFESSIONAL THEME 2025
 * VERSÃO FINAL CORRIGIDA: Toggler Funcional e Botão de Projetos Funcional/Ressalto */

/* =========================================
   1. SETUP DE FONTES E VARIÁVEIS
   ========================================= */

/* Importações de fontes auxiliares */

:root {
  --primary-orange: #FF4500;
  --accent-gold: #FFD700;
  --bg-dark: #0a0a0a;
  --bg-black: #000000;
  --bg-gradient-nav: linear-gradient(90deg, #000000 0%, #1a1a1a 100%);
  --text-color: #e0e0e0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-color);
  overflow-x: hidden;
  padding-top: 0;
  margin: 0;
}

/* --- EFEITO BURN-FLAME (Elegante e Suave) --- */

@keyframes burn-flame-elegant {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.4), 0 0 10px rgba(255, 215, 0, 0.1);
    color: #fff;
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.8), 0 0 25px rgba(255, 255, 200, 0.4);
    color: var(--accent-gold);
  }
}

.brasa-effect {
  transition: all 0.5s ease;
  cursor: default;
}

.brasa-effect:hover, .brasa-active {
  animation: burn-flame-elegant 2.5s infinite alternate ease-in-out;
}

/* =========================================
   2. NAVBAR
   ========================================= */

#mainNav {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.9);
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  transition: background 0.3s ease;
}

/* Logo */

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

#final-logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

#final-logo:hover {
  transform: scale(1.03);
}

/* --- ESTILO DOS LINKS (DESKTOP E MOBILE) --- */

.nav-link {
  display: block;
  padding: 0.7rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-radius: 0;
  background-color: transparent;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  color: #bbb !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold) !important;
  background-color: rgba(255, 69, 0, 0.15);
  border-color: transparent;
  transform: translateZ(20px) scale(1.05);
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
  animation: burn-flame-elegant 2.5s infinite alternate ease-in-out;
}

/* --- DESKTOP ALIGNMENT (MAIOR QUE 992px) --- */

@media (min-width: 992px) {
  #mainNav .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .navbar-collapse {
    flex-grow: 0;
    display: flex !important;
    height: auto !important;
  }
}

/* Ocultar o botão toggler no desktop */

@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    list-style-type: none !important;
  }
}

@media (min-width: 992px) {
  .nav-item {
    margin: 0;
    perspective: 1000px;
  }
}

/* --- CORREÇÃO DO TOGGLER (MOBILE: MENOR QUE 992px) --- */

/* 1. Garante que logo e botão fiquem nas extremidades */

@media (max-width: 991px) {
  #mainNav .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }
}

/* 2. REMOÇÃO COMPLETA DO ESTILO PADRÃO DO BOOTSTRAP */

@media (max-width: 991px) {
  .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0.5rem;
    position: relative;
    background-image: none !important;
    line-height: 1;
    display: block;
  }
}

/* 3. Estilização do ÍCONE FAS FA-BARS */

@media (max-width: 991px) {
  .navbar-toggler i {
    display: inline-block !important;
    color: var(--primary-orange) !important;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.3);
  }
}

/* 4. Efeito BURN no Hover/Clique */

@media (max-width: 991px) {
  .navbar-toggler:hover i {
    color: var(--accent-gold) !important;
    animation: burn-flame-elegant 2.5s infinite alternate ease-in-out;
  }
}

/* 5. Ajustes do Menu Dropdown */

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--bg-black);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 69, 0, 0.3);
    margin-top: 10px;
    border-radius: 0 0 5px 5px;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    list-style-type: none !important;
  }
}

@media (max-width: 991px) {
  .nav-item {
    width: 90%;
    margin: 5px 0;
    text-align: center;
  }
}

@media (max-width: 991px) {
  .navbar-brand {
    margin: 0;
  }
}

@media (max-width: 991px) {
  #final-logo {
    height: 40px;
  }
}

/* =========================================
   3. HERO SECTION E BOTÃO VIEW PROJECTS
   ========================================= */

header.masthead {
  height: 100vh;
  padding-top: 100px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.masthead h1 {
  font-family: 'HammerFat Regular', Impact, sans-serif;
  font-size: 3.5rem;
  font-weight: normal;
  text-shadow: 0 0 20px rgba(0,0,0,1);
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--primary-orange), #ff8c00);
  border: none;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Efeito de AUMENTAR e BRASAS no HOVER */

.btn-xl:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.8) !important;
  color: #fff !important;
  animation: burn-flame-elegant 2.5s infinite alternate ease-in-out;
}

/* Efeito de RESSALTO (PRESSÃO) no CLICK/ACTIVE/FOCUS */

.btn-xl:active, .btn-xl:focus {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.9) !important;
  outline: 5px solid rgba(255, 69, 0, 0.5) !important;
  outline-offset: 1px;
  transition: transform 0.1s, box-shadow 0.1s, outline 0.1s;
  animation: none !important;
}

/* 3.2. Remove Sublinhado (no-underline) */

.no-underline {
  text-decoration: none !important;
}

.no-underline:focus, .no-underline:active, .no-underline:visited {
  text-decoration: none !important;
}

/* =========================================
   4. OUTROS COMPONENTES
   ========================================= */

/* --- PORTFOLIO --- */

.portfolio-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.4s ease-out;
  background-color: #1a1a1a;
}

.portfolio-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-orange);
  z-index: 10;
}

.portfolio-item img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.portfolio-item:hover img {
  transform: scale(1.08);
  opacity: 0.9;
}

.portfolio-caption h4 {
  font-family: 'HammerFat Regular', Impact, sans-serif;
  font-weight: normal;
}

/* --- SERVICES --- */

.service-box {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  height: 100%;
}

.service-box:hover {
  background: rgba(255, 69, 0, 0.03);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.service-icon-wrapper {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.service-icon-wrapper i {
  color: var(--primary-orange);
  transition: all 0.4s;
}

.service-box:hover .service-icon-wrapper i {
  animation: burn-flame-elegant 2.5s infinite alternate ease-in-out;
}

/* --- MARQUEE / FOOTER / MODALS --- */

.social-marquee {
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 69, 0, 0.5);
  border-bottom: 1px solid rgba(255, 69, 0, 0.5);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

.social-icon {
  font-size: 2.2rem;
  color: #444;
  margin: 0 4vw;
  transition: color 0.3s;
}

.social-icon:hover {
  color: var(--primary-orange);
  text-shadow: 0 0 10px var(--primary-orange);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

footer {
  background-color: var(--bg-black);
  border-top: 1px solid #1a1a1a;
  font-size: 0.9rem;
  color: #666;
  padding: 2rem 0;
}

.modal-content {
  background-color: var(--bg-black);
  border: 2px solid var(--primary-orange);
  border-radius: 0;
}

