/**
 * PRIME CORRETORA - Base & Reset Styles
 */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible focus styling */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-petrol);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.8rem, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-cta);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Section Wrapper Base */
.section-padding {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

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

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

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

.bg-petrol h2, .bg-petrol h3, .bg-petrol p {
  color: var(--color-white);
}

/* Section Header Generic Component */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(36px, 4.5vw, 56px) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-dark);
  background-color: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(51, 168, 255, 0.25);
}

.section-tag.tag-orange {
  color: var(--color-cta);
  background-color: var(--color-cta-light);
  border-color: rgba(255, 92, 0, 0.2);
}

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

.section-subtitle {
  font-size: clamp(1.02rem, 1vw + 0.5rem, 1.18rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Subtle Entry Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@keyframes badgeShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.7s var(--transition-smooth) forwards;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-cta);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  z-index: 10000;
  transition: top 0.2s ease;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 15px;
}
