/* ============================================================
   shared.css — Design system comum a todas as páginas da Sagrav
   ============================================================ */

/* ===== VARIÁVEIS ===== */
:root {
  --bg:        #0a0a0a;
  --bg-alt:    #0e0e0e;
  --bg-card:   #141414;
  --accent:    #f12400;
  --accent-dk: #c81f00;
  --text:      #ffffff;
  --muted:     #888888;
  --border:    rgba(255, 255, 255, 0.07);
  --header-h:  80px;
  --max-w:     1200px;
  --radius:    10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img     { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a       { text-decoration: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== LABEL + SECTION TITLE ===== */
.label {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Hemi Head', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 48px;
}

/* ===== PAGE WRAPPER ===== */
.page-main {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* Cabeçalho interno da página (título da seção) */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-header .section-title { margin-bottom: 0; }

/* ===== BOTÕES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 13px 32px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }

/* ===== HEADER ===== */
.styled-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.logo img { height: 50px; transition: opacity 0.2s; }
.logo img:hover { opacity: 0.75; }

.main-nav { display: flex; align-items: center; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.main-nav ul li a {
  font-family: 'Hemi Head', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.2s;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.main-nav ul li a:hover         { color: #fff; }
.main-nav ul li a:hover::after  { width: 100%; }
.main-nav ul li a.active        { color: #fff; }
.main-nav ul li a.active::after { width: 100%; }

/* Hamburguer */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  width: 28px;
  justify-content: center;
}
.hamburger span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== FOOTER ===== */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo { height: 64px; }

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
}
.footer-copy a { color: var(--accent); }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .styled-header { padding: 0 20px; }
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px 20px;
  }
  .main-nav.show { display: flex; }
  .main-nav ul   { flex-direction: column; gap: 20px; }
  .main-nav ul li a { font-size: 1.1rem; }

  .container { padding: 0 20px; }
  .footer-nav { gap: 20px; }

  .page-header { padding: 48px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
