/*
Theme Name: NTJ Assessoria
Theme URI: https://ntjassessoria.com.br
Description: Tema institucional responsivo para a NTJ Assessoria.
Author: DTC Marketing Digital
Author URI: https://dtcmarketingdigital.com.br
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ntj-assessoria
*/

/* Reset & Base Rules */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #1A1A1A;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* DESIGN SYSTEM TOKENS */
:root {
  /* Colors */
  --primary: #8B1A1A; /* Deep Red */
  --primary-medium: #C0392B; /* Medium Red */
  --accent-green: #3B6B35; /* Forest Green */
  --accent-orange: #D4700A; /* Orange */
  --accent-amber: #E08C20; /* Amber */
  --highlight-yellow: #F5C842; /* Yellow */
  --bg-white: #FFFFFF;
  --bg-cream: #FDF5EC; /* Soft Cream */
  --text-dark: #1A1A1A;
  --text-muted: #555555;
  --text-light: #FFFFFF;
  --border-light: rgba(139, 26, 26, 0.08);
  --border-accent: rgba(212, 112, 10, 0.15);

  /* Gradients */
  --gradient-signature: linear-gradient(90deg, #8B1A1A, #C0392B, #D4700A, #E08C20);
  --gradient-cta: linear-gradient(135deg, #8B1A1A, #C0392B, #D4700A);
  --gradient-cta-hover: linear-gradient(135deg, #A82323, #D94E3F, #F28518);

  /* Shadows & Transitions */
  --shadow-sm: 0 4px 10px rgba(26, 26, 26, 0.02);
  --shadow-md: 0 12px 30px rgba(26, 26, 26, 0.05);
  --shadow-lg: 0 20px 50px rgba(26, 26, 26, 0.08);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
  scroll-margin-top: 100px;
}

/* 40/60 ASYMMETRIC GRID */
.grid-40-60 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* TOP BAR */
.top-bar {
  font-family: 'Poppins', sans-serif;
  background: var(--primary);
  color: var(--text-light);
  height: 40px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.top-bar-info:hover {
  color: var(--highlight-yellow);
}

.top-bar-info svg {
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
}

.top-bar-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.top-bar-right a:hover {
  color: var(--highlight-yellow);
  transform: translateY(-1px);
}

/* NAVBAR */
.navbar {
  font-family: 'Poppins', sans-serif;
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 88px;
  transition: var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  height: 76px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo img {
  height: 58px;
  width: auto;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(139, 26, 26, 0.12));
}

.navbar.scrolled .logo img {
  height: 48px;
}

.logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(139, 26, 26, 0.25));
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cta);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-cta-nav {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--primary);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  color: var(--primary);
  transition: var(--transition);
}

.btn-cta-nav:hover {
  background: var(--primary);
  color: var(--text-light);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
  z-index: 110;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  font-family: 'Poppins', sans-serif;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 4vh, 2.5rem);
  padding: 6rem 1.5rem 3rem 1.5rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--primary);
  transform: scale(1.05);
}

/* Global Buttons */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.1rem 2.5rem;
  border: none;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 26, 26, 0.2);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 112, 10, 0.35);
  background: var(--gradient-cta-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 26, 26, 0.15);
}

/* Section Header (Global Utility) */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-overline {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #D4A017;
  margin-bottom: .75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1A1A1A;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* SUBPAGES INNER HERO (CURVED DESIGN) */
.inner-hero {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #ecdcd0 100%);
  padding: clamp(120px, 12vw, 140px) 0 clamp(35px, 5vw, 45px) 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.inner-overline {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-orange);
  margin-bottom: 0.75rem;
  display: block;
}

.inner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.inner-title span {
  color: var(--primary);
}

.hero-separator {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-orange) 50%, var(--accent-green) 100%);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1.5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* Hero Image Card Styling (Standardized across subpages) */
.hero-curved-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  margin: 2rem auto;
  z-index: 2;
}

/* Faint decorative background circles using pseudo-elements */
.hero-curved-visual-wrapper::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -70px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #F2E5DA;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

.hero-curved-visual-wrapper::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #FDF5EC;
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.decor-curve-accent-2 {
  position: absolute;
  bottom: 20%;
  left: -100px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #EEDCD0;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Offset Card Border */
.decor-curve-accent-1 {
  position: absolute;
  top: 20px;
  left: -20px;
  right: 20px;
  bottom: -20px;
  border: 2px solid var(--accent-orange);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
  background: none !important;
  transform: none !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  border-left: 2px solid var(--accent-orange) !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rounded Square Image Card */
.hero-curved-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px !important;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: none !important;
  padding: 0 !important;
  display: block !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.hero-curved-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px !important;
}

/* Hover effects */
.hero-curved-visual-wrapper:hover .hero-curved-frame {
  transform: translateY(-10px);
  box-shadow: 0 30px 55px rgba(139, 26, 26, 0.18);
}

.hero-curved-visual-wrapper:hover .decor-curve-accent-1 {
  transform: translate(-5px, 5px);
}

/* CTA BANNER (Standardized style used at the bottom of pages) */
.cta-banner {
  background: linear-gradient(135deg, #4A0D0D 0%, #200404 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  position: relative;
  overflow: hidden;
}

.cta-banner-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: 1.5rem;
}

.cta-banner-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.6;
}

/* FOOTER */
.footer {
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 1.5rem;
}

.footer-brand-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
  transition: var(--transition);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
}

.footer-link:hover {
  color: var(--accent-orange);
  transform: translateX(4px);
}

.footer-info-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer-info-text a {
  transition: var(--transition);
}

.footer-info-text a:hover {
  color: var(--accent-orange);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4rem 0 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credits a {
  transition: var(--transition);
}

.footer-credits a:hover {
  color: #FFFFFF;
}

.credits-logo {
  height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* RESPONSIVE LAYOUT RULES */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .btn-cta-nav {
    display: inline-block;
  }

  .hamburger {
    display: none;
  }

  .grid-40-60 {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom-right {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }

  .grid-reverse-desktop {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .grid-reverse-desktop > :first-child {
    order: 2;
  }

  .grid-reverse-desktop > :last-child {
    order: 1;
  }
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
  
  .btn-cta-nav {
    display: inline-block;
  }
  
  .hamburger {
    display: none;
  }
}

@media (min-width: 1024px) {
  .grid-40-60 {
    gap: 5rem;
  }
  
  .hero-curved-visual-wrapper {
    width: 380px;
    height: 380px;
    aspect-ratio: 1/1;
    margin: 0 auto;
  }
}

/* Portrait frame composition used in subpages (e.g. Quem Somos, Soluções) */
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  background: var(--bg-white);
  z-index: 2;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-orange);
  border-radius: 8px;
  z-index: -1;
  pointer-events: none;
  transition: var(--transition);
}

.portrait-frame:hover::before {
  transform: translate(6px, -6px);
  border-color: var(--primary);
}

.portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  object-fit: cover;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}
