/* ============================================
   MANSSUR ADMINISTRAÇÃO JUDICIAL
   Design System & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables (Dark Theme - Default) ── */
:root {
  /* Navy Blues */
  --navy-900: #0a1628;
  --navy-800: #0d1f3c;
  --navy-700: #112a4e;
  --navy-600: #153460;
  --navy-500: #1a3f72;
  --navy-400: #2a5a9a;
  --navy-300: #4a7ec4;

  /* Silver / Prata */
  --silver-100: #f0f0f2;
  --silver-200: #d8d8dc;
  --silver-300: #c0c0c8;
  --silver-400: #a8a8b4;
  --silver-500: #8a8a98;
  --silver-gradient: linear-gradient(135deg, #c0c0c8 0%, #e8e8ec 40%, #a8a8b0 60%, #d0d0d8 100%);
  --silver-gradient-text: linear-gradient(135deg, #d0d0d8 0%, #ffffff 50%, #a8a8b0 100%);
  --silver-border: linear-gradient(135deg, #c0c0c8, #e0e0e4, #a0a0a8);

  /* Whites */
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-80: rgba(255,255,255,0.8);
  --white-70: rgba(255,255,255,0.7);
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-size-base: 17px;
  --line-height-base: 1.75;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.3);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.4);

  /* ── DARK THEME (default) ── */
  --bg-primary: var(--navy-900);
  --bg-secondary: var(--navy-800);
  --bg-tertiary: var(--navy-700);
  --bg-card: rgba(13, 31, 60, 0.8);
  --bg-card-hover: rgba(17, 42, 78, 0.9);
  --text-primary: var(--white);
  --text-secondary: var(--white-80);
  --text-muted: var(--white-60);
  --text-accent: var(--silver-300);
  --border-color: var(--white-10);
  --border-hover: var(--white-20);
  --input-bg: rgba(255,255,255,0.06);
  --input-border: var(--white-20);
  --input-focus: var(--silver-300);
  --overlay-dark: rgba(10, 22, 40, 0.85);
  --overlay-medium: rgba(10, 22, 40, 0.7);
  --header-bg: rgba(10, 22, 40, 0.95);
  --nav-gradient: linear-gradient(180deg, var(--navy-900) 0%, rgba(10, 22, 40, 0.95) 100%);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg-primary: #f5f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eceef4;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --text-primary: var(--navy-900);
  --text-secondary: var(--navy-700);
  --text-muted: var(--navy-500);
  --text-accent: var(--navy-400);
  --border-color: rgba(10, 22, 40, 0.1);
  --border-hover: rgba(10, 22, 40, 0.2);
  --input-bg: rgba(10, 22, 40, 0.04);
  --input-border: rgba(10, 22, 40, 0.15);
  --input-focus: var(--navy-400);
  --overlay-dark: rgba(245, 246, 250, 0.92);
  --overlay-medium: rgba(245, 246, 250, 0.8);
  --header-bg: rgba(10, 22, 40, 0.97);
  --nav-gradient: linear-gradient(180deg, var(--navy-900) 0%, rgba(10, 22, 40, 0.97) 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.12);
}

/* Light theme nav stays navy blue */
[data-theme="light"] .navbar {
  background: var(--header-bg) !important;
}
[data-theme="light"] .navbar * {
  color: var(--white) !important;
}
[data-theme="light"] .navbar .btn-contact {
  background: var(--silver-gradient) !important;
  color: var(--navy-900) !important;
}
[data-theme="light"] .navbar .btn-contact * {
  color: var(--navy-900) !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  overflow-x: hidden;
  transition: background var(--transition-medium), color var(--transition-medium);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Silver gradient text utility */
.silver-text {
  background: var(--silver-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section title bar */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-accent);
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--silver-gradient);
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-10);
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover img {
  transform: scale(1.03);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-menu a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-80);
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--silver-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--white);
  background: var(--white-05);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  transform: scaleX(1);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--white-20);
  border-radius: 10px;
  background: transparent;
  color: var(--white-80);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.15rem;
}

.theme-toggle:hover {
  background: var(--white-10);
  color: var(--white);
  border-color: var(--white-40);
}

.theme-toggle .icon-light,
[data-theme="light"] .theme-toggle .icon-dark {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-light {
  display: block;
}

/* Contact button */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--silver-gradient);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(192, 192, 200, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--white-20);
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  transition: all var(--transition-fast);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-900);
  z-index: 999;
  padding: 32px 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white-80);
  border-bottom: 1px solid var(--white-10);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--white);
  padding-left: 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.7) 50%, rgba(10,22,40,0.9) 100%);
}

/* Decorative elements */
.hero-deco {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-deco::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,192,200,0.05) 0%, transparent 70%);
}

.hero-deco::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,63,114,0.3) 0%, transparent 70%);
}

.hero-grid-line {
  position: absolute;
  background: var(--white-05);
}

.hero-grid-line.vertical {
  width: 1px;
  top: 0;
  bottom: 0;
}

.hero-grid-line.horizontal {
  height: 1px;
  left: 0;
  right: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 100px;
  margin-bottom: 28px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white-60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-label-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--silver-gradient);
  border-radius: 50%;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  max-width: 600px;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.hero h1 .silver-text {
  display: block;
  margin-top: 2px;
}

.hero h2 {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--white-40);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--silver-gradient);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192, 192, 200, 0.2);
}

.hero-btn svg {
  transition: transform var(--transition-fast);
}

.hero-btn:hover svg {
  transform: translateX(4px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-40);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--white-40), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.section-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
}

[data-theme="light"] .section-bg-image img {
  opacity: 0.08;
}

section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--bg-secondary);
}

[data-theme="light"] .about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

.about-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.3) 0%, transparent 60%);
  border-radius: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.about-stat {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.about-stat:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--silver-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   RJ SECTION (Home preview)
   ============================================ */
.rj-section {
  background: var(--bg-primary);
  position: relative;
}

.rj-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.rj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.rj-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.rj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--silver-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.rj-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rj-card:hover::before {
  opacity: 1;
}

.rj-card-tipo {
  display: inline-block;
  padding: 4px 14px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-accent);
  margin-bottom: 16px;
}

[data-theme="light"] .rj-card-tipo {
  background: rgba(10,22,40,0.05);
  border-color: rgba(10,22,40,0.1);
  color: var(--navy-400);
}

.rj-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.rj-card-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.rj-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4ade80;
}

.rj-card-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.rj-cta {
  text-align: center;
  margin-top: 48px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--silver-300);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

/* ============================================
   TEAM SECTION
   ============================================ */
/* ── Team Area (inside contact section) ── */
.team-area {
  padding: 100px 0 60px;
  background: var(--bg-secondary);
}

[data-theme="light"] .team-area {
  background: var(--white);
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.team-card {
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-photo-initials {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-accent);
  letter-spacing: 4px;
}

.team-card-info {
  padding: 28px 24px 32px;
  text-align: center;
}

.team-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.team-card-oab {
  font-size: 0.82rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-saiba-mais {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: transparent;
  border: 1.5px solid var(--silver-300);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-saiba-mais:hover {
  background: var(--silver-gradient);
  border-color: transparent;
  color: var(--navy-900);
}

[data-theme="light"] .btn-saiba-mais {
  border-color: var(--navy-500);
  color: var(--navy-700);
}

[data-theme="light"] .btn-saiba-mais:hover {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 100%);
  border-color: transparent;
  color: var(--white);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(192, 192, 200, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--silver-gradient);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(192, 192, 200, 0.3);
}

/* Contact info side */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon {
  background: rgba(10,22,40,0.04);
  border-color: rgba(10,22,40,0.1);
}

.contact-info-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Map */
.contact-map {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 280px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5) contrast(1.1);
}

[data-theme="light"] .contact-map iframe {
  filter: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--white-10);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: auto;
  width: 200px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--white-60);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--white-60);
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--white-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--white-40);
}

/* ============================================
   MODAL (Team Mini CV)
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--white-10);
  color: var(--text-primary);
}

.modal h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-role {
  font-size: 0.9rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.modal-cv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-cv-list li {
  padding: 12px 16px;
  padding-left: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
}

.modal-cv-list li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--silver-300);
  border-radius: 50%;
}

/* ============================================
   RECUPERAÇÃO JUDICIAL PAGE
   ============================================ */
.page-header {
  padding: 120px 0 60px;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.page-header-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, rgba(10,22,40,0.9) 100%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--white-60);
  font-size: 1.05rem;
  max-width: 600px;
}

/* Company detail page */
.company-detail {
  padding: 60px 0;
}

.company-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 40px;
}

.company-info-header h2 {
  margin-bottom: 8px;
}

.company-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.company-meta span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.company-meta strong {
  color: var(--text-secondary);
}

/* Phase/document accordion */
.phase-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phase-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.phase-item:hover {
  border-color: var(--border-hover);
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.phase-header:hover {
  background: var(--white-05);
}

[data-theme="light"] .phase-header:hover {
  background: rgba(10,22,40,0.02);
}

.phase-header h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.phase-arrow {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.phase-item.open .phase-arrow {
  transform: rotate(180deg);
}

.phase-docs {
  display: none;
  padding: 0 24px 20px;
}

.phase-item.open .phase-docs {
  display: block;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white-05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

[data-theme="light"] .doc-item {
  background: rgba(10,22,40,0.02);
}

.doc-item:hover {
  background: var(--white-10);
  border-color: var(--border-hover);
}

[data-theme="light"] .doc-item:hover {
  background: rgba(10,22,40,0.05);
}

.doc-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220,38,38,0.1);
  border-radius: 8px;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 700;
}

.doc-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.doc-actions {
  display: flex;
  gap: 8px;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white-05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.doc-btn:hover {
  background: var(--silver-gradient);
  color: var(--navy-900);
  border-color: transparent;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
}

.service-card {
  padding: 48px 36px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  margin: -0.5px;
}

.service-card:hover {
  background: var(--bg-card-hover);
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card--featured {
  border-top: 3px solid transparent;
  border-image: var(--silver-gradient) 1;
  border-image-slice: 1 1 0 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 14px;
  margin-bottom: 24px;
  color: var(--silver-300);
  transition: all 0.3s ease;
}

[data-theme="light"] .service-icon {
  background: rgba(10,22,40,0.04);
  border-color: rgba(10,22,40,0.08);
  color: var(--navy-500);
}

.service-card:hover .service-icon {
  background: var(--silver-gradient);
  border-color: transparent;
  color: var(--navy-900);
  transform: scale(1.08);
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: 0;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ============================================
   CONTACT SECTION REDESIGN
   ============================================ */
.contact-strip {
  background: var(--navy-800);
  padding: 28px 0;
  margin-bottom: 80px;
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-strip-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  color: var(--silver-300);
  flex-shrink: 0;
}

.contact-strip-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-40);
  margin-bottom: 2px;
}

.contact-strip-item strong {
  font-size: 0.95rem;
  color: var(--white-90);
  font-weight: 600;
}

.contact-strip-divider {
  width: 1px;
  height: 44px;
  background: var(--white-10);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

.contact-offices {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-office-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.contact-office-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.contact-office-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 10px;
  color: var(--silver-300);
  flex-shrink: 0;
}

[data-theme="light"] .contact-office-icon {
  background: rgba(10,22,40,0.04);
  border-color: rgba(10,22,40,0.1);
  color: var(--navy-400);
}

.contact-office-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-office-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Form wrapper */
.contact-form-wrapper {
  position: relative;
}

.contact-form-wrapper .contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper .contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--silver-gradient);
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ============================================
   ADMIN PANEL — Clean white dashboard
   ============================================ */

/* Force body white for admin page */
body.admin-page,
body:has(.admin-layout) {
  background: #f7f8fb !important;
  color: #0d1f3c !important;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f7f8fb;
}

/* ── Sidebar: always navy ── */
.admin-sidebar {
  background: #0a1628;
  padding: 28px 20px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.admin-sidebar-logo {
  margin-bottom: 44px;
  padding: 0 4px;
}

.admin-sidebar-logo img {
  height: 32px;
  opacity: 0.9;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.admin-nav a svg {
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.admin-nav a:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}
.admin-nav a:hover svg {
  opacity: 0.9;
}

.admin-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
}
.admin-nav a.active svg {
  opacity: 1;
}

/* ── Main area: white background ── */
.admin-main {
  margin-left: 260px;
  padding: 44px 56px;
  background: #f7f8fb;
  min-height: 100vh;
  width: calc(100% - 260px);
  color: #0d1f3c;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d1f3c;
  letter-spacing: -0.01em;
}

/* ── Admin cards: white with subtle shadow ── */
.admin-card {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eceef3;
  color: #0d1f3c;
  letter-spacing: 0.01em;
}

/* ── Admin table ── */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b92a5;
  border-bottom: 2px solid #eceef3;
  background: #fafbfd;
  white-space: nowrap;
}

/* Column widths for proper spacing */
.admin-table th:nth-child(1) { width: 30%; }
.admin-table th:nth-child(2) { width: 16%; }
.admin-table th:nth-child(3) { width: 10%; }
.admin-table th:nth-child(4) { width: 16%; }
.admin-table th:nth-child(5) { width: 28%; }

.admin-table th:first-child {
  border-radius: 8px 0 0 0;
}
.admin-table th:last-child {
  border-radius: 0 8px 0 0;
}

.admin-table td {
  padding: 16px;
  font-size: 0.88rem;
  color: #374151;
  border-bottom: 1px solid #f0f1f5;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.admin-table td strong {
  color: #0d1f3c;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.admin-table td span {
  color: #6b7280;
  font-size: 0.82rem;
}

.admin-table tr:hover td {
  background: #f8f9fc;
}

.admin-table .badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-active {
  background: #ecfdf5;
  color: #059669;
}

.badge-pending {
  background: #fffbeb;
  color: #d97706;
}

/* ── Admin buttons ── */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #0d1f3c;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-admin:hover {
  background: #112a4e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10,22,40,0.15);
}

.btn-admin-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #112a4e;
}

.btn-admin-outline:hover {
  border-color: #2a5a9a;
  color: #0a1628;
  background: #f9fafb;
  box-shadow: none;
  transform: none;
}

.btn-admin-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-admin-danger:hover {
  background: #fef2f2;
  border-color: #f87171;
  box-shadow: none;
  transform: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.73rem;
}

/* ── Admin stats ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.admin-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #1a3f72, #4a7ec4);
  border-radius: 0 2px 2px 0;
}

.admin-stat-card h4 {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b92a5;
  margin-bottom: 10px;
  white-space: nowrap;
}

.admin-stat-card .number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #0d1f3c;
  -webkit-text-fill-color: #0d1f3c;
  background: none;
}

/* ── Admin form modal ── */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-content {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 18px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 40px;
  animation: modalIn 0.3s ease-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  color: #0d1f3c;
}

.admin-modal-content h2 {
  color: #0d1f3c;
}

.admin-modal-content .modal-close {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
}

.admin-modal-content .modal-close:hover {
  background: #e5e7eb;
  color: #0d1f3c;
}

/* Admin forms within white panels */
.admin-main .form-group label {
  color: #112a4e;
  font-weight: 600;
}

.admin-main .form-group input,
.admin-main .form-group textarea,
.admin-main .form-group select,
.admin-modal-content .form-group input,
.admin-modal-content .form-group textarea,
.admin-modal-content .form-group select {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #0d1f3c;
  border-radius: 8px;
}

.admin-main .form-group input:focus,
.admin-main .form-group textarea:focus,
.admin-main .form-group select:focus,
.admin-modal-content .form-group input:focus,
.admin-modal-content .form-group textarea:focus,
.admin-modal-content .form-group select:focus {
  border-color: #2a5a9a;
  box-shadow: 0 0 0 3px rgba(26,63,114,0.08);
}

.admin-main .form-group input::placeholder,
.admin-main .form-group textarea::placeholder,
.admin-modal-content .form-group input::placeholder,
.admin-modal-content .form-group textarea::placeholder {
  color: #9ca3af;
}

/* Admin page specific overrides for doc-item inside modals */
.admin-modal-content .doc-item {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.admin-modal-content .doc-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.admin-modal-content .admin-card {
  background: #f9fafb;
  border-color: #e5e7eb;
}

/* Phase name input inside fases modal */
.admin-modal-content input[type="text"] {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #0d1f3c;
}

/* Admin theme toggle stays in header */
.admin-main .theme-toggle {
  border-color: #d1d5db;
  color: #153460;
  background: #fff;
}
.admin-main .theme-toggle:hover {
  background: #f3f4f6;
  border-color: #2a5a9a;
  color: #0a1628;
}

/* Override p color inside admin area */
.admin-main p {
  color: #6b7280;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-strip-inner {
    flex-direction: column;
    gap: 20px;
  }

  .contact-strip-divider {
    width: 60px;
    height: 1px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  :root {
    --section-padding: 70px 0;
  }

  /* Nav mobile */
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .navbar-actions .btn-contact {
    display: none;
  }

  .navbar-inner {
    height: 68px;
  }

  .navbar-logo img {
    height: 38px;
  }

  /* Hero mobile */
  .hero-content {
    padding: 100px 24px 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1rem;
  }

  .hero-scroll {
    display: none;
  }

  /* Grids mobile */
  .rj-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper .contact-form {
    padding: 28px;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    width: 100%;
    max-width: 360px;
  }

  .team-photo {
    height: 360px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* About stats */
  .about-stats {
    grid-template-columns: 1fr;
  }

  /* Company detail */
  .company-info-header {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Admin responsive */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: relative;
    width: 100%;
  }

  .admin-main {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-table {
    table-layout: auto;
  }

  .admin-modal-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .modal {
    padding: 32px 24px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--white-20);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--white-40);
}

/* ============================================
   LIGHT THEME: Silver text becomes Navy Blue
   ============================================ */
[data-theme="light"] .silver-text {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 50%, var(--navy-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Keep silver/white text inside sections that always have dark backgrounds */
[data-theme="light"] .hero .silver-text,
[data-theme="light"] .contact-strip .silver-text {
  background: linear-gradient(135deg, #d0d0d8 0%, #ffffff 50%, #a8a8b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .about-stat-number {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .admin-stat-card .number {
  color: #0d1f3c;
  -webkit-text-fill-color: #0d1f3c;
  background: none;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::after {
  content: 'WhatsApp';
  position: absolute;
  right: 72px;
  background: var(--navy-900);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  .whatsapp-float::after {
    display: none;
  }
}
