/* Estilos Customizados - DeMolay Amazonas */

:root {
  --color-primary: #001a4d;
  --color-secondary: #c41e3a;
  --color-light: #f3f4f6;
  --color-dark: #1f2937;
  --color-gray: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-dark);
  background: linear-gradient(180deg, #f7fbff 0%, #edf4fb 42%, #ffffff 100%);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

/* Header */
header {
  border-top: 4px solid var(--color-primary);
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

/* Logo */
.logo img {
  height: 40px;
  width: auto;
}

/* Navigation (desktop) */
.desktop-nav > ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-weight: 500;
}

.desktop-nav a {
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

/* Dropdown Menu */
.desktop-nav .dropdown {
  position: relative;
}

.desktop-nav .dropdown-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}

.desktop-nav .dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.desktop-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.desktop-nav .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-dark);
  border: none;
}

.desktop-nav .dropdown-menu a:hover {
  background-color: var(--color-light);
  border-bottom: none;
}

/* Navigation (mobile) */
.mobile-nav ul {
  list-style: none;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #e2e8f0;
  margin-top: 3rem;
  padding: 2rem 1.5rem;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

footer h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: #93c5fd;
}

footer p, footer a {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #cbd5e1;
}

footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #f8fafc;
  border-bottom-color: rgba(248, 250, 252, 0.3);
}

footer .social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

footer .social a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

/* Page Content */
article,
.card {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.75rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.12);
}

.content-grid-3 article {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-grid-3 article:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.14);
}

main p,
main li,
main dd {
  color: var(--color-dark);
  line-height: 1.8;
}

main h1,
main h2,
main h3 {
  color: var(--color-primary);
}

.image-card,
.imagem-contorno,
.card-image {
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  max-width: 100%;
  display: block;
}

.back-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover,
.button:hover {
  background: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.button-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(0, 26, 77, 0.15);
}

.button-secondary:hover {
  background: rgba(196, 30, 58, 0.08);
  color: var(--color-secondary);
}

.section-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.76) 100%);
  border-radius: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-gray);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.content-grid {
  display: grid;
  gap: 1.5rem;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .content-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .content-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

thead {
  background: #f8fafc;
}

th,
td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  th {
    display: none;
  }

  td {
    padding-left: 50%;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-weight: 600;
    color: var(--color-primary);
  }
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  min-height: calc(100vh - 220px);
  padding: 5rem 1.5rem 4rem;
}

/* Títulos */
h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: 2rem 0 1rem 0;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem 0;
}

/* Parágrafos */
p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--color-gray);
}

.small-text {
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* Abas */
.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.tab-button {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-gray);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.tab-button:hover {
  color: var(--color-primary);
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Imagens */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Prevent overflow in long names/labels on small screens */
p,
li,
h1,
h2,
h3,
button,
a {
  overflow-wrap: anywhere;
}

/* Header nav should not break individual menu labels */
header nav a,
header nav button,
.desktop-nav li,
.mobile-nav a {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  main {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  footer {
    padding: 1.5rem 1rem;
  }

  footer .container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Tabs: horizontal scroll on mobile */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .tab-button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.6rem 0.85rem;
  }

  .tab-button.active {
    border-bottom-color: var(--color-secondary);
  }
}


.imagem-contorno {
    float: left; /* Ou 'right' para o lado oposto */
    margin-right: 15px; /* Cria espaço entre o texto e a imagem */
    margin-bottom: 10px;
    max-width: 100%; /* Garante responsividade */
    height: auto;
}