/* ========================================
   sitedomm.com — documento funcional
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* --- reset & base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fg: #1a1a1a;
  --bg: #f5f5f0;
  --border: #1a1a1a;
  --muted: #888;
  --mono: 'Space Mono', 'Courier New', monospace;
  --max-w: 860px;
  --gutter: 1.5rem;
  --rainbow: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00cc44, #0088ff, #6600ff, #cc00cc);
}

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

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-transform: lowercase;
}

/* --- links: rainbow --- */
a {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  border-bottom: none;
}
a:hover {
  opacity: 0.7;
}

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

/* --- layout --- */
.site {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-top: 4.5rem;
}

/* --- header --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gutter) max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter)));
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  z-index: 100;
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rainbow);
}

.header__logo {
  display: flex;
  align-items: center;
  background: none;
  -webkit-text-fill-color: var(--fg);
}

.header__logo span {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  -webkit-text-fill-color: var(--fg);
}

nav a {
  margin-left: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-bottom: none;
}
nav a:hover {
  opacity: 0.7;
}
nav a.active {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00cc44, #0088ff, #6600ff, #cc00cc) 1;
}

/* --- hero --- */
.hero {
  padding: 4rem 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero__left {
  flex: 1;
}

.hero__tagline {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 500px;
}

.hero__tagline span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
  margin-top: 0.3em;
}

.hero__wheel {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff0000, #ff8800, #ffff00, #00cc44, #0088ff, #6600ff, #cc00cc, #ff0000);
  animation: spin 6s linear infinite;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__wheel-inner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-reverse 6s linear infinite;
  transform-origin: center center;
}

.hero__wheel-inner img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* --- sections --- */
.section {
  padding: 3rem 0;
}

.section__title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: none;
  position: relative;
}

.section__title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rainbow);
}

/* --- trabalho por cliente --- */
.territory {
  margin-bottom: 2.5rem;
}
.territory:last-child {
  margin-bottom: 0;
}
.territory__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.client-block {
  border: 1px solid #c8c8c8;
  margin-bottom: 0.5rem;
}
.client-block:hover {
  background: rgba(0,0,0,0.02);
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
}
.client-header__left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.client-header__name {
  font-weight: 700;
  font-size: 0.9rem;
}
.client-header__scope {
  font-size: 0.72rem;
  color: var(--muted);
}
.client-header__toggle {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.25s ease;
  width: 20px;
  text-align: center;
}
.client-block.is-open .client-header__toggle {
  transform: rotate(45deg);
}

.client-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.client-block.is-open .client-body {
  max-height: 900px;
  padding: 0 1rem 1rem;
}

.client-body__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #ddd;
}

.frentes {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
  margin-bottom: 0.75rem;
}
.frente {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  font-size: 0.82rem;
  gap: 1rem;
}
.frente__name {
  font-weight: 700;
  white-space: nowrap;
}
.frente__cat {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: right;
}

.client-body__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.client-body__images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* --- random link button --- */
.random-link-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  background: none;
  border: 1px solid #c8c8c8;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--fg);
  text-transform: lowercase;
  transition: background 0.15s, color 0.15s;
}
.random-link-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* --- sobre --- */
.sobre__text {
  font-size: 0.9rem;
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.sobre__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.sobre__images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sobre__projetos {
  list-style: none;
}

.sobre__projetos li {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.85rem;
}

.sobre__projetos li strong {
  flex-shrink: 0;
  min-width: 120px;
}

.projeto__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.projeto__link {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projeto__link--placeholder {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--muted);
  background-clip: unset;
  color: var(--muted);
  pointer-events: none;
}

/* --- conteudo --- */
.conteudo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.conteudo-card {
  background: var(--bg);
  padding: 1.5rem;
}

.conteudo-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.conteudo-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.conteudo-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* diario */
.diario {
  margin-top: 2rem;
  border: 1px solid #ddd;
}

.diario__header {
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.diario__header:hover {
  color: var(--fg);
}

.diario__toggle {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}
.diario.is-open .diario__toggle {
  transform: rotate(45deg);
}

.diario__entries {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.diario.is-open .diario__entries {
  max-height: 1200px;
}

.diario__entry {
  padding: 1.25rem 1.25rem;
  border-top: 1px solid #eee;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.diario__entry-date {
  color: var(--muted);
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.diario__entry-title {
  font-weight: 700;
  font-size: 0.85rem;
}

.diario__entry-body {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.25rem;
}

.diario__entry-body p {
  margin-bottom: 0.6em;
}

.diario__empty {
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  border-top: 1px solid #eee;
}

/* --- contato --- */
.contato-list a {
  background: none;
  -webkit-text-fill-color: var(--fg);
  color: var(--fg);
  border-bottom: 1px solid #ddd;
}
.contato-list a:hover {
  opacity: 0.5;
}

.contato-list {
  list-style: none;
}

.contato-list li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #ddd;
}

.contato-list li span {
  display: inline-block;
  min-width: 100px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* --- footer --- */
.footer {
  padding: 2rem 0;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: left;
}

/* --- dvd logo --- */
.dvd-logo {
  position: fixed;
  width: 56px;
  height: 56px;
  z-index: 1000;
  opacity: 0.45;
  transition: opacity 0.2s;
  border: none;
  background: none;
  -webkit-text-fill-color: unset;
}
.dvd-logo:hover {
  opacity: 1;
}
.dvd-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* --- mobile --- */
@media (max-width: 600px) {
  html { font-size: 14px; }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site {
    padding-top: 7rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__tagline { font-size: 1.1rem; }
  .hero__wheel {
    width: 120px;
    height: 120px;
  }
  .hero__wheel-inner {
    width: 84px;
    height: 84px;
  }
  .hero__wheel-inner img {
    width: 46px;
    height: 46px;
  }
  .sobre__images {
    grid-template-columns: 1fr 1fr;
  }
  .client-body__images {
    grid-template-columns: 1fr;
  }
  .client-body__images img {
    height: 160px;
  }
  .conteudo-grid {
    grid-template-columns: 1fr;
  }
  .frente {
    flex-direction: column;
    gap: 0.1rem;
  }
  .dvd-logo {
    width: 40px;
    height: 40px;
  }
}
