/* ============================================================
   MEDC - base.css
   Chrome comum a todas as páginas: reset, tipografia base,
   header/navegação, menu mobile e footer.
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* Link de acessibilidade "pular para o conteúdo" */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #0052CC;
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 1200;
}

.skip-link:focus {
    left: 0;
}

/* Header */
.header-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0052CC;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    width: auto;
    pointer-events: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #0052CC;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0052CC;
    transition: width 0.3s ease;
}

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

/* Dropdown "Recursos" */
.nav-menu .has-submenu{ position:relative; }
.nav-menu .submenu-toggle{ display:inline-flex; align-items:center; gap:6px; }
.nav-menu .caret{ transition:transform .2s ease; }
.nav-menu .has-submenu:hover .caret,
.nav-menu .has-submenu:focus-within .caret{ transform:rotate(180deg); }
.nav-menu .submenu{
  list-style:none; position:absolute; top:calc(100% + 10px); left:0; min-width:236px;
  background:#fff; border:1px solid #e5e7eb; border-radius:10px;
  box-shadow:0 14px 34px rgba(16,38,58,.16); padding:8px;
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s; z-index:1001;
}
.nav-menu .submenu::before{ content:''; position:absolute; top:-12px; left:0; right:0; height:12px; }
.nav-menu .has-submenu:hover .submenu,
.nav-menu .has-submenu:focus-within .submenu{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-menu .submenu li{ margin:0; }
.nav-menu .submenu a{ display:block; padding:10px 12px; border-radius:8px; color:#374151; font-weight:500; white-space:nowrap; }
.nav-menu .submenu a:hover{ background:#eef4ff; color:#0052CC; }
.nav-menu .submenu a::after{ display:none; }
@media (max-width:768px){
  .nav-menu .submenu{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; background:transparent; padding:2px 0 2px 14px; min-width:0;
  }
  .nav-menu .submenu::before{ display:none; }
  .nav-menu .caret{ display:none; }
}

.cta-button {
    background: linear-gradient(135deg, #0052CC, #2684FF);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #64748b;
}

.footer-bottom a {
    text-decoration: none;
}

/* Menu mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 4px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    .nav-wrapper {
        display: none;
    }

    .nav-wrapper.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav-menu a:after {
        display: none;
    }
}
