/* OficinaVista — macacao.digital | deep-navy editorial */
:root {
  --navy-950: #060e1a;
  --navy-900: #0a1628;
  --navy-800: #122240;
  --navy-700: #1a3058;
  --navy-600: #244070;
  --navy-500: #3a5580;
  --accent: #c8923a;
  --accent-light: #e0b060;
  --text: #e8ecf2;
  --text-muted: #8a9bb5;
  --text-dark: #1a2030;
  --surface: #0f1e36;
  --surface-raised: #152a48;
  --border: rgba(138,155,181,0.18);
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --header-h: 64px;
  --header-h-shrink: 48px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { padding-left: var(--sp-3); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-2);
}

/* Header — compact-topbar, sticky-shrink */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-950);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: height var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  height: var(--header-h-shrink);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: font-size var(--transition);
}

.is-shrunk .logo { font-size: 1rem; }

.logo svg { width: 28px; height: 28px; transition: width var(--transition), height var(--transition); }
.is-shrunk .logo svg { width: 22px; height: 22px; }

.main-nav ul {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  padding: 0;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
}

/* Buttons — outlined */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--accent);
  color: var(--navy-950);
}

/* Tags — pill-colored */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-workwear { background: rgba(200,146,58,0.2); color: var(--accent-light); }
.tag-utilitario { background: rgba(58,130,200,0.2); color: #7eb8e8; }
.tag-tendencias { background: rgba(130,200,130,0.2); color: #8ed48e; }
.tag-guia { background: rgba(200,100,180,0.2); color: #d890c8; }
.tag-brasil { background: rgba(200,80,80,0.2); color: #e89090; }

/* Cards — shadowed */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Hero — split-image-text */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5) 0 var(--sp-4);
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--sp-3);
  max-width: 480px;
}

.hero-image {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img, .hero-image svg { width: 100%; height: 100%; object-fit: cover; }

/* Article list — horizontal-rows */
.article-rows { display: flex; flex-direction: column; gap: var(--sp-2); }

.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-row:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.article-row-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-800);
}

.article-row-thumb img, .article-row-thumb svg { width: 100%; height: 100%; object-fit: cover; }

.article-row-body h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: var(--sp-1);
}

.article-row-body h3 a { color: var(--text); }
.article-row-body h3 a:hover { color: var(--accent-light); }

.article-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}

/* Author — inline-byline */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.byline img, .byline svg { width: 22px; height: 22px; border-radius: 50%; }

.article-row-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Homepage hero-grid layout */
.home-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
}

.home-main { grid-column: span 8; }
.home-sidebar { grid-column: span 4; }

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
  font-weight: 700;
}

/* Sidebar — right-rail */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.sidebar-widget h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { padding: var(--sp-1) 0; border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { color: var(--text-muted); font-size: 0.875rem; }
.sidebar-links a:hover { color: var(--accent-light); }

/* Article page — wide-magazine */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-4);
  padding: var(--sp-4) 0 var(--sp-5);
}

.article-wide { max-width: 100%; }

.article-header { margin-bottom: var(--sp-3); }

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.25;
  margin: var(--sp-2) 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.article-hero-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--sp-3) 0;
  box-shadow: var(--shadow);
}

.article-hero-img img, .article-hero-img svg { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: var(--sp-4) 0 var(--sp-2);
  color: var(--text);
}

.article-body h3 {
  font-size: 1.05rem;
  margin: var(--sp-3) 0 var(--sp-1);
  color: var(--accent-light);
}

.article-body p { margin-bottom: var(--sp-2); }
.article-body ul, .article-body ol { margin-bottom: var(--sp-2); color: var(--text-muted); }
.article-body li { margin-bottom: var(--sp-1); }

/* Page content (legal, about) */
.page-content {
  padding: var(--sp-4) 0 var(--sp-5);
  max-width: 780px;
}

.page-content.wide { max-width: var(--container); }

.page-content h1 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin-bottom: var(--sp-2);
}

.page-content h2 {
  font-size: 1.15rem;
  margin: var(--sp-4) 0 var(--sp-2);
  color: var(--accent-light);
}

.page-content p, .page-content li {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--sp-2);
  line-height: 1.65;
}

.page-content ul, .page-content ol { margin-bottom: var(--sp-3); }

/* Contact form */
.contact-form { max-width: 560px; margin-top: var(--sp-3); }

.form-group { margin-bottom: var(--sp-2); }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--sp-1);
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--sp-1) var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer — two-column */
.site-footer {
  margin-top: auto;
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding: var(--sp-5) 0 var(--sp-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.footer-col p, .footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--sp-1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-bottom a { color: var(--text-muted); }

/* Cookie — bottom-bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-bar.is-visible { transform: translateY(0); }

.cookie-bar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}

.cookie-bar a { color: var(--accent-light); }

.cookie-actions { display: flex; gap: var(--sp-1); flex-shrink: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: var(--sp-2) 0;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-light); }

/* Responsive */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .home-main, .home-sidebar { grid-column: span 12; }
  .article-layout { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-2);
  }
  .main-nav.is-open ul { flex-direction: column; gap: var(--sp-2); }
  .nav-toggle { display: block; }
  .cookie-bar { flex-direction: column; text-align: center; }
}
