/* Dr. Valdomiro Lopes - Pixel Perfect Design */
:root {
  --primary-blue: #0a438d;
  --primary-orange: #e45b3a;
  --light-gray: #f9f9f9;
  --medium-gray: #6c757d;
  --white: #ffffff;
  --text-dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--light-gray);
}

body.subpage {
  padding-top: 80px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =======================
   HEADER NAVIGATION
   ======================= */
.header-nav {
  background: var(--primary-blue);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

/* Logo Area */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-link.active {
  color: var(--primary-orange);
  font-weight: 600;
}

.nav-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.05rem;
  margin: 0 0.25rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-gabinete {
  background: var(--primary-orange);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-gabinete:hover {
  background: #d44d2a;
  transform: translateY(-1px);
}

.instagram-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.instagram-icon:hover {
  background: #d44d2a;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

/* =======================
   HERO SECTION
   ======================= */
.hero-section {
  width: 100%;
  min-height: clamp(520px, 75vh, 720px);
  background: transparent;
  color: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  margin-top: 80px;
  z-index: 1;
  overflow: visible;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-image: linear-gradient(180deg, #062E6F 0%, #1361B3 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 0 0 500px 0;
  z-index: 0;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(480px, 65vh, 640px);
}

/* Hero Photo — dentro do grid, escala fluida */
.hero-photo-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  position: relative;
  z-index: 2;
  margin-bottom: clamp(-6rem, -10vw, -3rem);
}

.hero-kv-img {
  width: 100%;
  max-width: clamp(260px, 42vw, 580px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

/* Hero Text Content */
.hero-text-content {
  max-width: 720px;
  justify-self: end;
  width: 100%;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 0.95rem;
}

.dash-line {
  width: 40px;
  height: 2px;
  background: var(--primary-orange);
}

.hero-title {
  text-align: left;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

.badge {
  width: auto;
  height: 36px;
  border: 1px solid #FFFFFF;
  border-radius: 100px;
  opacity: 1;
  background: transparent;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  flex-shrink: 0;
}

.hero-description {
  max-width: 38rem;
  text-align: left;
  color: #FFFFFF;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary-orange);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #d44d2a;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* Hero Curve */
/* Hero curve removido conforme layout de referência */

/* Linha laranja removida conforme layout de referência */

/* =======================
   BIG NUMBERS SECTION
   ======================= */
.big-numbers-section {
  background: var(--light-gray);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
  margin-top: 0;
  position: relative;
  z-index: 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.75rem;
  justify-items: center;
}

.number-card {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 2vw, 2rem);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
  min-height: clamp(160px, 20vw, 200px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.number-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.big-number {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--primary-orange);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.big-number .small-text {
  font-size: 1.75rem;
  font-weight: 900;
}

.number-label {
  font-size: 1.125rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

/* =======================
   FOOTER SECTION
   ======================= */
.footer-section {
  background: var(--primary-blue);
  color: var(--white);
  padding: 4rem 0 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

/* Footer Left Column */
.footer-left {
  max-width: 500px;
}

.footer-tag {
  color: var(--primary-orange);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.footer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.footer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-description {
  font-size: 1.35rem;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0;
}

/* Footer Right Column - Contact Grid */
.footer-right {
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

.contact-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

a.contact-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-icon {
  color: var(--primary-orange);
  margin-bottom: 0.75rem;
}

.contact-label {
  color: var(--primary-orange);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  color: var(--white);
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  color: var(--white);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-instagram-icon {
  display: inline-flex;
  color: var(--primary-orange);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.footer-instagram-icon:hover {
  opacity: 1;
}

/* =======================
   PLACEHOLDER IMAGES
   ======================= */
.placeholder-img {
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  font-weight: 600;
  border-radius: 12px;
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */

/* Notebook / iPad landscape */
@media (max-width: 1200px) {
  .hero-kv-img {
    max-width: clamp(240px, 38vw, 480px);
  }

  .hero-text-content {
    max-width: 100%;
  }

  .numbers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Tablet / iPad */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-section {
    min-height: auto;
    overflow: visible;
  }

  .hero-content {
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: auto;
  }

  .hero-photo-wrap {
    margin-bottom: clamp(-4rem, -8vw, -2rem);
  }

  .hero-kv-img {
    max-width: clamp(220px, 36vw, 420px);
  }

  .numbers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .footer-content {
    gap: 3rem;
  }

  .btn-gabinete {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }
}

/* Tablet / mobile navigation */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--primary-blue);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    gap: 0;
    z-index: 1001;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
  }

  .nav-menu .nav-link:last-child {
    border-bottom: none;
  }

  .nav-divider {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  /* Header Mobile */
  .logo-img {
    height: 32px;
  }
  
  .btn-gabinete {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  /* Hero Mobile */
  .hero-section {
    min-height: auto;
    padding: 2rem 0 1.5rem;
    margin-top: 70px;
    overflow: visible;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    min-height: auto;
  }

  .hero-photo-wrap {
    order: -1;
    margin-bottom: 0;
    align-self: center;
  }

  .hero-kv-img {
    max-width: min(320px, 85vw);
    margin: 0 auto;
  }

  .hero-text-content {
    justify-self: center;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  /* Numbers Mobile */
  .big-numbers-section {
    padding: 2.5rem 0 3rem;
  }
  
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .number-card {
    padding: 2.75rem 1.25rem;
    min-height: 180px;
    min-width: auto;
  }
  
  .big-number {
    font-size: 3rem;
  }

  .big-number .small-text {
    font-size: 1.5rem;
  }

  .number-label {
    font-size: 1.05rem;
  }
  
  /* Footer Mobile */
  .footer-section {
    padding: 3rem 0 1.5rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-section::before {
    border-radius: 0 0 clamp(120px, 25vw, 500px) 0;
  }

  .footer-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .footer-description {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header-actions .btn-gabinete {
    display: none;
  }

  .hero-kv-img {
    max-width: min(280px, 90vw);
  }
  
  .numbers-grid {
    grid-template-columns: 1fr;
  }
  
  .number-card {
    margin: 0 auto;
    max-width: 280px;
  }
  
  .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .badge {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.8rem;
  }
}

/* Contact page cards */
.contact-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(26, 43, 94, 0.07);
  border: 1px solid rgba(26, 43, 94, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 43, 94, 0.1);
}

.contact-card-link {
  text-decoration: none;
  color: inherit;
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--primary-orange, #ff6b35);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue, #1a2b5e);
  margin-bottom: 0.35rem;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
}

.contact-card-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .contact-card {
    padding: 1.25rem;
  }

  .contact-card-title {
    font-size: 1.125rem;
  }

  .contact-card-value {
    font-size: 0.9375rem;
  }
}