/*
  Mono Theme (Light/Dark)
  - Black & white minimalist palette
  - Respects system prefers-color-scheme
  - Toggle via html[data-theme="light"|"dark"]
*/

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e6e6e6;
  --card: #f7f7f7;
  --focus: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --border: #262626;
    --card: #141414;
    --focus: #ffffff;
  }
}

html[data-theme="light"] {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e6e6e6;
  --card: #f7f7f7;
  --focus: #000000;
}

html[data-theme="dark"] {
  --bg: #0b0b0b;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --border: #262626;
  --card: #141414;
  --focus: #ffffff;
}

/* Basic reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { filter: grayscale(100%); }

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a:hover { border-color: var(--text); }
a:focus { outline: 2px dashed var(--focus); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.menu li.active a { font-weight: 600; }

.toggle {
  margin-left: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
}
.toggle:hover { filter: brightness(0.98); }

/* Hero */
.hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  margin: 0 0 12px 0;
}
.hero-text p {
  margin: 0 0 24px 0;
  color: var(--muted);
  max-width: 58ch;
}
.hero-video iframe {
  width: 100%;
  height: 315px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-video iframe {
    height: 250px;
  }
}
.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--text);
  border-radius: 8px;
  background: transparent;
}
.button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Sections */
section { padding: 48px 0; }
.wrapper { padding: 48px 0; }
.section-title { margin: 0 0 12px 0; font-size: 20px; }
.section-desc { margin: 0 0 24px 0; color: var(--muted); max-width: 70ch; }

/* Header left group and small button */
.left { display: flex; align-items: center; gap: 12px; }
.right { display: flex; align-items: center; gap: 12px; }
.button.small { padding: 6px 10px; font-size: 0.9rem; border-radius: 999px; }
.button.block { display: block; width: 100%; text-align: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 12;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 16px;
}
.card h3 { margin: 0 0 8px 0; font-size: 18px; }
.card p { margin: 0 0 12px 0; color: var(--muted); }

@media (min-width: 720px) {
  .card { grid-column: span 6; }
}
@media (min-width: 980px) {
  .card { grid-column: span 4; }
}

/* Contact */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list li { border-left: 2px solid var(--border); padding-left: 12px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); }

/* Utilities */
.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;
}

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px dashed var(--focus); outline-offset: 2px; }
.form { display: grid; gap: 12px; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

/* Messages */
.message { padding: 12px 14px; border-left: 3px solid var(--border); border-radius: 8px; background: var(--card); }
.message.success { border-color: #22c55e; }
.message.error { border-color: #ef4444; }
/* Adicione ao final do mono.css */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.contact-card {
    background: var(--card, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.contact-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.contact-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--text, #222);
}
.contact-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.1em;
    color: var(--primary, #222);
}
.contact-info p, .contact-info a {
    font-size: 1em;
    color: var(--muted, #444);
    text-align: justify;
    margin: 0;
}
.contact-info a {
    text-decoration: underline;
}
.icon-envelope::before { content: "✉️"; }
.icon-phone::before { content: "📞"; }
.icon-location::before { content: "📍"; }
.icon-github::before { content: ""; font-family: "Font Awesome 6 Free"; font-weight:900; }
.icon-instagram::before { content: ""; font-family: "Font Awesome 6 Brands"; font-weight:400; }
.icon-linkedin::before { content: ""; font-family: "Font Awesome 6 Brands"; font-weight:400; }
@media (max-width: 700px) {
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-card { padding: 16px 10px; }
}

/* ===== contato formal, limpo e responsivo ===== */
.contact-clean .contact-lead { color: var(--muted, #6b7c93); margin-top:6px; margin-bottom:18px; text-align:justify; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* only Dados + Redes */
  gap: 20px;
  align-items: start;
}

.contact-block { background: var(--card-bg, #fff); padding:18px; border-radius:10px; border:1px solid rgba(0,0,0,0.06); box-shadow: 0 6px 20px rgba(0,0,0,0.04); }

.block-title { font-weight:700; margin-bottom:12px; color:var(--text, #111); }

.item { display:flex; gap:12px; margin-bottom:12px; align-items:flex-start; }
.icon { color:var(--text, #111); flex:0 0 28px; display:grid; place-items:center; }
.text .label { font-size:13px; color:var(--muted, #6b7c93); margin-bottom:4px; }
.text .value { font-weight:600; color:var(--text, #111); word-break:break-word; }

/* Social list */
.social-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.social-list a { display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--text, #111); padding:8px; border-radius:8px; transition:background .12s ease, transform .12s ease; }
.social-list a svg { opacity:0.9; color:var(--text, #111); }
.social-list a span { font-weight:600; }
.social-list a:hover { background: rgba(0,0,0,0.03); transform:translateY(-3px); }

/* The new full-width message card */
.contact-message { margin-top:18px; }
.contact-message .contact-block { padding:18px; }

/* Button styles (ensure compatibility) */
.btn-primary { background:var(--text, #111); color:#fff; padding:10px 14px; border-radius:8px; border:none; cursor:pointer; font-weight:700; display:inline-block; text-decoration:none; }

/* Produtos minimalistas — ícones vetoriais que respeitam tema */
.product-grid {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 16px;
}

.product-card {
  --card-size: 130px;
  width: var(--card-size);
  height: var(--card-size);
  background: transparent;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text, #111); /* icon color uses currentColor */
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  padding: 12px;
}

/* Hover / focus */
.product-card:hover,
.product-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  outline: none;
}

/* Icon size */
.product-icon {
  width: 52px;
  height: 52px;
  display: block;
  margin-bottom: 8px;
  /* adapt contrast: in dark theme, set icon to white; in light, use dark */
  color: var(--text, #111);
}

/* Product name (small, optional) */
.product-name {
  display:block;
  font-size:13px;
  font-weight:700;
  text-align:center;
  color: var(--muted, #6b7c93);
}

/* Dark mode adjustments — if mono.css uses data-theme or prefers-color-scheme this will match */
@media (prefers-color-scheme: dark) {
  .product-card { border-color: rgba(255,255,255,0.06); background: transparent; }
  .product-icon { color: var(--white, #fff); }
  .product-name { color: rgba(255,255,255,0.7); }
}

/* If your theme switch uses html[data-theme="dark"], also ensure it adapts:
html[data-theme="dark"] .product-icon { color: var(--white,#fff); }
html[data-theme="dark"] .product-card { border-color: rgba(255,255,255,0.06); }
*/

/* Responsivo — empilha em telas pequenas */
@media (max-width:600px){
  .product-grid { gap:12px; justify-content: space-between; }
  .product-card { width: calc(33.333% - 8px); height: 110px; padding:10px; }
  .product-icon { width:44px; height:44px; margin-bottom:6px; }
  .product-name { font-size:12px; }
}
@media (max-width:420px){
  .product-card { width: calc(50% - 8px); }
}

/* ===== Correções específicas para a seção de contato ===== */

/* Evita que pseudo-elementos (ícones de texto) sobrescrevam os SVGs inline */
.icon::before,
.icon-envelope::before,
.icon-phone::before,
.icon-location::before,
.icon-github::before,
.icon-instagram::before,
.icon-linkedin::before {
  content: none !important;
}

/* Grade responsiva e espaçamento consistente */
.contact-clean .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}

/* Caixa interna padrão */
.contact-clean .contact-block {
  background: var(--card, #fff);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Linha de dado (ícone + texto) */
.contact-clean .item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

/* Força dimensões e alinhamento do contêiner do ícone */
.contact-clean .item .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: transparent;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Normaliza SVGs dentro do ícone */
.contact-clean .item .icon svg {
  width: 18px;
  height: 18px;
  display: block;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

/* Texto do dado */
.contact-clean .text .label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.contact-clean .text .value {
  margin-top: 3px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

/* Social links — layout vertical e responsivo */
.contact-clean .social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.contact-clean .social-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background .12s ease, transform .12s ease, border-color .12s ease;
  border: 1px solid transparent;
  background: transparent;
}
.contact-clean .social-list a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text);
}
.contact-clean .social-list a:hover {
  background: color-mix(in oklab, var(--card) 88%, transparent);
  transform: translateY(-2px);
  border-color: var(--border);
}

/* Mensagem de contato (full width) */
.contact-clean .contact-message {
  margin-top: 16px;
  display: block;
}
.contact-clean .contact-message .contact-block {
  padding: 16px;
}

/* Garante boa exibição em telas pequenas */
@media (max-width: 720px) {
  .contact-clean .item { align-items: center; }
  .contact-clean .item .icon { width: 40px; height: 40px; min-width:40px; }
  .contact-clean .item .icon svg { width:20px; height:20px; }
}
