/* =========================================================
   SecInfra — Global Stylesheet
   Design tokens, base, and shared elements
   Mirrors lp.secinfra.com.br
   ========================================================= */

:root {
  --color-primary: #003B71;
  --color-primary-light: #114890;
  --color-accent: #C65911;
  --color-accent-hover: #A34A0E;
  --color-bg: #F8FAFC;
  --color-bg-alt: #F0F4F8;
  --color-bg-card: #FFFFFF;
  --color-text: #1A2332;
  --color-text-muted: #4B5563;
  --color-border: #E2E8F0;
  --color-success: #16A34A;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 16px rgba(0, 59, 113, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 59, 113, 0.14);

  --font-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;

  --container-narrow: 720px;
  --container-base: 1080px;
  --container-wide: 1240px;
  --container-reading: 780px;

  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-primary-light);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p {
  margin: 0 0 1em;
}

ul, ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-base);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }
.container--reading { max-width: var(--container-reading); }

.section {
  padding: clamp(36px, 5vw, 64px) 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--white {
  background: var(--color-bg-card);
}

.section__title {
  text-align: center;
  margin-bottom: 8px;
}
.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.0625rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 89, 17, 0.25);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(198, 89, 17, 0.35);
}
.btn--secondary {
  background: var(--color-bg-card);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}
.btn--lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

/* ---------- Hero (used by home / archive / search) ---------- */
.hero {
  background: linear-gradient(135deg, #003B71 0%, #114890 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(198, 89, 17, 0.18), transparent 50%);
  pointer-events: none;
}
.hero > .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero h1,
.hero h2,
.hero h3 {
  color: #fff;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 16px;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
}
.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  z-index: 100;
  border-radius: var(--radius-sm);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: 24px; }
.mb-md { margin-bottom: 24px; }
.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;
}

/* ---------- WordPress core alignment / block helpers ---------- */
.alignleft   { float: left; margin: 0.5em 1.5em 0.5em 0; }
.alignright  { float: right; margin: 0.5em 0 0.5em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide,
.alignfull   { max-width: none; }

.wp-caption,
figure.wp-caption {
  max-width: 100%;
  margin: 1.5em 0;
}
.wp-caption-text,
figcaption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}
