/* ========================================
   GLOBAL CSS - Projeto Didasko Portugal
   ======================================== */

:root {
  --primary-navy: #1A365D;
  --secondary-terracotta: #E67E22;
  --accent-amber: #F59E0B;
  --gray-dark: #2D3748;
  --gray-medium: #718096;
  --gray-light: #E2E8F0;
  --off-white: #F7FAFC;
  --white: #FFFFFF;
  --success: #48BB78;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--white);
}

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: 24px; }

h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--primary-navy);
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
  opacity: 1;
}

/* Selection */
::selection {
  background: var(--accent-amber);
  color: var(--white);
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--accent-amber);
  outline-offset: 2px;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s;
}

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

/* Section spacing */
section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

/* Section intro text */
.section-intro {
  font-size: 20px;
  color: var(--gray-medium);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Centered CTA */
.cta-center {
  text-align: center;
  margin-top: 48px;
}

/* Utility */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
