/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #0a2540;
  /* Deep Navy */
  --color-secondary: #226b80;
  /* Teal/Blue */
  --color-accent: #c49a45;
  /* Gold/Champagne */
  --color-accent-hover: #a88132;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #f5f8fa;
  --color-bg-dark: #071a2e;

  /* Tyopgraphy */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;

  /* Transitions & Shadows */
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Layout */
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

.bg-light {
  background-color: var(--color-bg-light);
}

.bg-dark {
  background-color: var(--color-bg-dark);
}

.text-white {
  color: #fff !important;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.logo-spec {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.2) 100%);
  z-index: -1;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  animation: fadeUp 1s ease forwards;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(196, 154, 69, 0.1);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image-wrapper {
  position: relative;
  width: 450px;
  height: 600px;
  animation: fadeLeft 1s ease 0.3s forwards;
  opacity: 0;
}

.image-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px 100px 10px 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.frame-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: 10px 100px 10px 10px;
  z-index: 1;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-subtitle {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section-text {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.title-separator {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0 auto 30px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-col {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--color-primary);
  color: #fff;
  padding: 30px;
  border-radius: 50%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 160px;
  height: 160px;
  border: 5px solid #fff;
}

.exp-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tip-detail {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tip-detail summary {
  padding: 15px 20px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  /* Hide default arrow */
}

.tip-detail summary::-webkit-details-marker {
  display: none;
}

.tip-detail summary i {
  color: var(--color-accent);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.tip-detail p {
  padding: 0 20px 20px 50px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

.tip-detail[open] summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

.tip-alert {
  margin-top: 25px;
  padding: 15px 20px;
  background-color: rgba(196, 154, 69, 0.1);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  color: var(--color-primary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Education Timeline
   ========================================================================== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background-color: rgba(10, 37, 64, 0.1);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 0 0 5px var(--color-bg-light);
  z-index: 1;
}

.timeline-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.timeline-date {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 15px;
}

.timeline-content p {
  color: var(--color-text-light);
}

/* ==========================================================================
   Procedures List
   ========================================================================== */
.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.service-block {
  display: flex;
  gap: 30px;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 154, 69, 0.3);
}

.service-block .service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(196, 154, 69, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.service-block:hover .service-icon {
  background-color: var(--color-accent);
  color: #fff;
}

.service-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.service-info p {
  color: var(--color-text-light);
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.service-info p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Insurances
   ========================================================================== */
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.insurance-item {
  background: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--color-primary);
  transition: var(--transition);
  font-size: 0.95rem;
}

.insurance-item.highlight {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.insurance-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.insurance-note {
  color: var(--color-text-light);
  font-style: italic;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.d-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-img-placeholder {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-icon {
  font-size: 4rem;
  color: rgba(10, 37, 64, 0.2);
}

.blog-content {
  padding: 30px;
}

.blog-category {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 15px;
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.blog-title a:hover {
  color: var(--color-accent);
}

.blog-excerpt {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.blog-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-link:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Contact & Location
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-primary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  padding: 60px;
}

.text-light-blue {
  color: #8bb1c5;
}

.contact-desc {
  color: #c9d6df;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-list li {
  display: flex;
  margin-bottom: 25px;
  gap: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-text {
  color: #c9d6df;
}

.contact-text strong {
  color: #fff;
  font-weight: 500;
}

.contact-text a {
  color: #c9d6df;
}

.contact-text a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #041220;
  color: #fff;
  padding: 40px 0;
}

.footer p {
  color: #8bb1c5;
}

.footer-small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

.developer-credit-wrapper {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.dev-badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 500;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 0 12px;
  height: 32px;
  font-family: monospace, var(--font-primary);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  gap: 8px;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.dev-badge-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  /* slightly lighter dark input bg */
  border-color: rgba(196, 154, 69, 0.5);
  /* subtle gold accent */
  color: var(--color-accent);
}

.dev-badge-btn svg {
  width: 14px;
  height: 14px;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.dev-badge-btn:hover svg {
  color: #f59e0b;
  /* amber-500 equivalent */
}

/* Magic Text Swapper */
.dev-text-container {
  overflow: hidden;
  height: 16px;
  display: inline-block;
  min-width: 115px;
  position: relative;
  text-align: center;
  line-height: 16px;
}

.dev-text-content {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.87, 0, 0.13, 1);
}

.dev-text-content span {
  height: 16px;
  display: block;
  width: 100%;
}

.dev-text-content .dev-name-highlight {
  color: #fff;
  font-weight: 600;
}

.dev-badge-btn:hover .dev-text-content {
  transform: translateY(-16px);
}


.dev-signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #999;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.dev-signature:hover {
  color: #fff;
  border-color: #d4af37;
  /* Cor de Destaque (Accent) */
  background: rgba(212, 175, 55, 0.05);
  /* Versão translúcida do destaque */
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.dev-text {
  display: inline-block;
  min-width: 140px;
  text-align: center;
  transition: text-shadow 0.3s;
}

.dev-signature:hover .dev-text {
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.dev-signature .tooltip-box {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #0f172a;
  color: #f1f5f9;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

.dev-signature:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.fa-heart.pulse-red {
  color: #ef4444;
  animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 50px;
  }

  .hero-content {
    margin-bottom: 50px;
  }

  .hero-text {
    margin: 0 auto 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-content-col {
    order: -1;
  }

  .experience-badge {
    width: 120px;
    height: 120px;
    bottom: -15px;
    right: -15px;
  }

  .exp-number {
    font-size: 1.8rem;
  }

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

  .insurance-grid {
    justify-content: center;
  }

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

  .contact-map iframe {
    height: 400px;
  }

  .d-flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }

  .nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 15px;
  }

  .btn-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

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

  .service-block {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .service-block .service-icon {
    margin: 0 auto 20px;
  }

  .service-info h3 {
    justify-content: center;
  }

  .insurance-grid {
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: 500px;
  }
}